NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: can't su, but I can log in as root



Hi Jeremy,

On Wed, 2 Jul 2008, Jeremy C. Reed wrote:
> Hey Al,
>
> What do you have for the following?
>
> id

uid=100(admin) gid=100(users) groups=0(wheel),100(users)

> ls -l `which su`

ls: -m: No such file or directory
ls: aliased: No such file or directory
ls: su: No such file or directory
ls: su:: No such file or directory
ls: to: No such file or directory


> And error messages when you attempt the su ...

Password:
su: Sorry: authentication error

What I don't understand is that everything looks allright.

ll /usr/bin/su
-r-sr-xr-x  1 root  wheel  15399 May 17  2007 /usr/bin/su

head -n 1 /etc/group
wheel:*:0:root,admin

What else could it be?

I have even done a new install and yet I get the same thing.

I do have NetBSD 4 distributed between the drives:
df -h
Filesystem    Size      Used     Avail Capacity  Mounted on
/dev/wd0a     740M       23M      680M     3%    /
/dev/sd0e     9.6G      820K      9.1G     0%    /var
/dev/sd0f      23G      1.2G       21G     5%    /usr
/dev/sd1g      66G      140M       63G     0%    /home
kernfs        1.0K      1.0K        0B   100%    /kern

My fstabs looks like this:
more /etc/fstab
/dev/wd0a       /       ffs     rw,softdep              1 1
/dev/sd0b       none    swap    sw,dp                   0 0
/dev/sd1b       none    swap    sw                      0 0
/dev/sd0e       /var    ffs     rw,softdep,nosuid       1 2
/dev/sd0f       /usr    ffs     rw,softdep,nosuid       1 2
/dev/sd1g       /home   ffs     rw,softdep,nosuid       1 2
kernfs          /kern   kernfs  rw
procfs          /proc   procfs  rw,noauto

Could the drive arrangement be the issue?

Thanks,
Al







Home | Main Index | Thread Index | Old Index