LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2007, 10:19 AM   #1
groxy
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Rep: Reputation: 0
Smile sudo usage- basic question


Hi
I have the following entries in /etc/sudoers

root ALL=(ALL) ALL
oracle All = /sbin/dd, /bin/mount, /sbin/mount.cifs, /bin/umount

However, I still need to input root's password when i want to execute "umount" command as oracle user.
I tried
> umount "some_directory"
> sudo umount "some_directory"
> suod /bin/umount "some_directory"
None o this work

What am I doing wrong?

Thanks for any advice

Groxy
 
Old 12-05-2007, 10:47 AM   #2
Jacky Quah
LQ Newbie
 
Registered: May 2005
Posts: 28

Rep: Reputation: 15
what's output said ?
 
Old 12-05-2007, 11:18 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
However, I still need to input root's password when i want to execute "umount" command as oracle user.
Are you putting in roots password or oracles password? Sudo shouldn't be asking you for roots password. Ever.

Quote:
oracle All
I don't know if it makes a difference, but you may have to capitilize the word ALL. So it should be:

oracle ALL = /sbin/dd, /bin/mount, /sbin/mount.cifs, /bin/umount

And if you don't want to have to supply oracle's password, you need to add the NOPASSWD directive:


oracle ALL = NOPASSWD: /sbin/dd, /bin/mount, /sbin/mount.cifs, /bin/umoun
 
Old 12-06-2007, 01:38 AM   #4
groxy
LQ Newbie
 
Registered: Nov 2007
Posts: 11

Original Poster
Rep: Reputation: 0
whenever I execute one of the following commands command i am asked for root's password

Groxy
 
Old 12-06-2007, 07:16 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by groxy View Post
whenever I execute one of the following commands command i am asked for root's password

Groxy
Something isn't right here. As I said, if you're asked for a password, it would be your own (in this case oracle's) not roots. Have you tried entering oracle's password?

The whole basis for sudo is that the system administrator uses it to give certain users the ability to run specific commands as root, without knowing root's password. However, as a safety precaution, sudo asks the user for their password, just in case it isn't actually that user entering the command.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic usage of iptables Nerox Linux - Networking 5 04-30-2007 02:44 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Basic Wine Usage MALDATA Linux - Software 8 05-02-2006 06:24 PM
sudo command usage??? pagadala_cs Linux - Software 1 12-24-2004 10:13 AM
basic usage of xmodmap missinghelix Linux - Software 0 09-07-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:08 PM.

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
Open Source Consulting | Domain Registration