Solved - the /etc/shells file was at fault. Removing it closed the
case.

duro

On 10 Gru, 22:51, duro <[email protected]> wrote:
> Hi.
>
> Just a while ago I was playing with vsftpd (adding groups, users etc.)
> and suddenly I couldn't su - from normal user. This seems very awkward
> because I haven't touched anything linked to this command. I can
> normally login to root account and to my user account, but when i try
> to su - from user (or root) I only see blank screen and there is no
> reaction at all. Normally the password field appears and after typing
> it everything works but... well the password field doesn't appear. It
> looks like infinite loop (the cpu usage is 100%!)
>
>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
> COMMAND
>  1946 root      20   0 14712  856  688 R  100  0.0   0:06.11 su
>
> su -
> (nothing happens, empty line -> you can type anything here)
>
> I've checked everything and it seems it should work as it did.
>
> bash-4.1# ls -l `which su`
> -rws--x--x 1 root root 66179 2010-02-28 21:19 /bin/su
>
> bash-4.1# cat /etc/login.defs | grep WHEEL
> SU_WHEEL_ONLY   no
>
> Operations I've made today while playing with vsftpd.
>
> Dec 10 19:04:14 linux su[6612]: Successful su for root by user
> Dec 10 19:04:14 linux su[6612]: + /dev/pts/0 user:root
> Dec 10 19:20:30 linux groupadd[6970]: group added to /etc/group:
> name=ftp-users, GID=1000
> Dec 10 19:20:30 linux groupadd[6970]: group added to /etc/gshadow:
> name=ftp-users
> Dec 10 19:20:30 linux groupadd[6970]: new group: name=ftp-users,
> GID=1000
> Dec 10 19:22:37 linux useradd[6982]: new user: name=ftp, UID=1001,
> GID=1000, home=/mnt/hd/ftp/, shell=/bin/bash
> Dec 10 19:24:29 linux passwd[6987]: password for 'ftp' changed by
> 'root'
> Dec 10 20:00:32 linux usermod[7226]: change user 'ftp' shell from '/
> bin/bash' to '/sbin/nologin'
> Dec 10 20:11:57 linux login[1505]: invalid password for 'root'  on '/
> dev/tty1'
> Dec 10 20:12:04 linux login[1505]: ROOT LOGIN  on '/dev/tty1'
> Dec 10 20:12:52 linux userdel[1525]: delete user 'ftp'
> Dec 10 20:13:07 linux groupdel[1532]: group 'ftp-users' removed from /
> etc/group
> Dec 10 20:13:07 linux groupdel[1532]: group 'ftp-users' removed from /
> etc/gshadow
> Dec 10 20:13:07 linux groupdel[1532]: group 'ftp-users' removed
>
> 19.00-19.25 everything works fine.
> About ~20 the problem appears.
>
> Any ideas? I've got no clue what could've happened.
>
> Regards,
> duro

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to