Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-06-2003, 08:28 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Rep:
|
"su" another user
I want to let a user A to use "su" to login to another user - user B where user A is null password, i tried to modify the file /etc/group and add user A to the wheel statement , but it still can't run su to login as user B , what is wrong in my system ? thx
|
|
|
08-06-2003, 08:33 PM
|
#2
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
What command are you using? As far as I know, user Bob can su to user Fred simply by doing 'su Fred' if he knows the password. Either messing with /etc/group is unnecessary or you're trying something more complicated that I'm not familiar with.
|
|
|
08-06-2003, 08:41 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx reply , user B is null password , but i can't simply "su user B" . thx
|
|
|
08-06-2003, 08:52 PM
|
#4
|
Member
Registered: Aug 2003
Location: /dev/null
Posts: 40
Rep:
|
If you are logged as root, all you have to do is to type
# su NEW_USER
and you'll "be" that user...
if you're a normal user, just type
$su NEW_USER
password:
and you are in.
|
|
|
08-06-2003, 09:19 PM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Yeah - if there's no password you should just be able to 'su B' and then hit 'enter' and you should be in. If that's not working, I don't know what the problem is. Maybe check /etc/passwd and make sure user B does in fact exist.
|
|
|
08-06-2003, 10:59 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx all reply , my problem is the user B is null password , so it should not to pop the password prompt , it seems the system don't allow user A to use "su" function . thx
|
|
|
All times are GMT -5. The time now is 04:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|