Web Hosting Talk







View Full Version : Help with user accounts and shells


WALoeIII
03-24-2002, 02:46 AM
I am trying to setup a few user accounts

%>adduser josh
%>passwd josh

then I enter password and that is all good, but from that account if I try to su to become super user I can but I can't run stuff. Like up2date must be run as root, but if I su from the account josh then I can't run it, but if I actually login as root (which I know is not a good idea, what I'm trying to avoid) then I can run up2date.

I'm trying to avoid having to pass the root password over the open world.

Could it be that these users don't have the right shells?

WALoeIII
03-24-2002, 02:47 AM
BTW, Red Hat 7.1 with plesk.

ToastyX
03-24-2002, 02:58 AM
"su" switches users without running login scripts, so /usr/sbin, which is where up2date is located, is not in the search path. Try "su -" instead.

WALoeIII
03-24-2002, 03:05 AM
what does the - do?

davidb
03-24-2002, 03:43 AM
the best way I could say it, is that it loads you as the root user with the enviromental variables enabled, ie it sets the apporpriate home directory and paths as the root user.

jambler
03-24-2002, 03:54 AM
you could always use "su -l root"

WALoeIII
03-24-2002, 04:15 AM
cool, thanks alot guys.

Works well, prolly should have just done man su :)