LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-06-2003, 09:28 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
"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
 
Old 08-06-2003, 09:33 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 08-06-2003, 09:41 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
thx reply , user B is null password , but i can't simply "su user B" . thx
 
Old 08-06-2003, 09:52 PM   #4
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
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.
 
Old 08-06-2003, 10:19 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 08-06-2003, 11:59 PM   #6
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 03:05 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 05:55 AM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 08:57 AM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 02:42 AM
Shorten a Qmail user name to "user" instead of "user@domain.com" anorman Linux - Software 0 12-12-2003 09:29 AM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration