usermod and passwd

Reply

Join Date: Oct 2008
Posts: 46
Reputation: shwick is an unknown quantity at this point 
Solved Threads: 0
shwick shwick is offline Offline
Light Poster

usermod and passwd

 
0
  #1
Oct 9th, 2008
ubuntu 8.04

I want to user olduser to newuser and this command isn't working, it just brings up the command options:

sudo usermod -l newuser -d /home/olduser -m /home/newuser olduser

Also, I changed the password for my current(only) user but now it's the same password for sudo as well. I changed the sudo password to something different, but it doesn't change, it stays the same as the password for the user.

Is there anyway to make the sudo password different than the priveleged user's password?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 61
Reputation: Gromit is an unknown quantity at this point 
Solved Threads: 7
Gromit's Avatar
Gromit Gromit is offline Offline
Junior Poster in Training

Re: usermod and passwd

 
0
  #2
Oct 13th, 2008
Hi Shwick!

I'm not exactly sure what you're trying to do with the usermod command there. If it's giving you the usage, then you've likely got a syntax error somewhere. What's the end result you've got in mind here?

On the sudo issue, the "sudo" password is always going to be the password of the user that's running ths sudo command. That's what "sudo" does, it gives a user the ability to run specific commands (or all of them) as a privileged user, using their own login credentials.

If you don't want a user to have sudo access, remove them from the sudoers group. I'm assuming we're talking about Ubuntu here, in which case it's probably the "admin" group. You should be able to tell by checking out the /etc/sudoers file.

Hope this helps!
-G
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the *nix Software Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC