Hi,
Well, I am home now, in front of the text-mode console, and I tried to run
strace su - amit inside of 'script', but this means that my tty is
/dev/pts/<something> and I don't get the error...
So I ran it without, and below is the captured output.
Any help would be welcome.
Thanks,
Amit
strace log: (the error is right at the bottom)
open("/etc/passwd", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1348, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40027000
read(3, "root:x:0:0:root:/root:/bin/tcsh\n"..., 4096) = 1348
close(3) = 0
munmap(0x40027000, 4096) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1348, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40027000
read(3, "root:x:0:0:root:/root:/bin/tcsh\n"..., 4096) = 1348
close(3) = 0
munmap(0x40027000, 4096) = 0
umask(022) = 077
fork() = 7875
rt_sigprocmask(SIG_BLOCK, ~[], NULL, 8) = 0
rt_sigaction(SIGTERM, {0x80498c0, [], 0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM TERM], NULL, 8) = 0
wait4(-1, /proc/7875/fd/15: Permission denied.
[amit@galadriel ~]$
On 22 Jan 2003, Oleg Goldshmidt wrote:
> Shachar Shemesh <[EMAIL PROTECTED]> writes:
>
> > I believe you will find that amit is not running as root.
>
> That's the point. His OP looked like he *was* running as root and
> tried to su as a regular user.
>
>
--
Amit Margalit
=============
Nice guys finish last.
-- Leo Durocher
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]