Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: sudo - /opt/sudoers - password - Linux question< Next Oldest | Next Newest >
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 19 2007,14:21 QUOTE

I'm setting up a guest account on my machine and am removing the user's entry from /opt/sudoers.   I'm guessing that this is the way to remove a user's privileges for running sudo <command>.  It works... when I try to execute anything in console with the account, I get a friendly warning about being careful and a prompt for a password.

I've tried every password I can think of at the prompt, but have never been able to continue.  I've tried the password that I issued for the root account.  I've tried running sudo root and entering the same password to no avail.  I've tried other user accounts that I have set up with sudo privileges.

I have DSL 4.1 installed as multi-user.

Am I using the /opt/sudoer file properly? or should I have an entry in  there for the guest account with speciific pieces of information?

Much thanks,
John
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 19 2007,15:54 QUOTE

Try the user's password.

An alternative to sudo would be su -c "some command"


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Dec. 19 2007,16:05 QUOTE

Did you edit manually or with visudo?

Quote
CAVEATS

The sudoers file should always be edited by the visudo command which locks the file and does grammatical checking. It is imperative that sudoers be free of syntax errors since sudo will not run with a syntactically incorrect sudoers file.

When using netgroups of machines (as opposed to users), if you store fully qualified hostnames in the netgroup (as is usually the case), you either need to have the machine's hostname be fully qualified as returned by the hostname command or use the fqdn option in sudoers.
http://www.gratisoft.us/sudo/man/sudoers.html#caveats


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Dec. 19 2007,19:57 QUOTE

You mean /etc/sudoers ?
Did you try this under the 'dsl' user?
What kind of installation?

Afaik DSL doesn't have visudo set up properly... you can first do `export EDITOR=vi` for example.
Back to top
Profile PM 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 19 2007,20:42 QUOTE

Yes, /etc/sudoers, sorry about that, still getting locations of things straight in my head.

No, I didn't know visudo existed.

When I used beaver, I removed the entire line for the user.  I just tried it with visudo (with the editor export) and it does act differently.  Now, I get the message that the 'user is not in sudo file'.  That's good.  And now I understand that I can su <user> to get the privileges in this session to work as a super-user... perfect!

Thanks for the link to the sudoers man page, I'll give it a good read.

Much thanks,
John
Back to top
Profile PM 
9 replies since Dec. 19 2007,14:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: sudo - /opt/sudoers - password - Linux question

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code