FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
sudo

 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
ande
PostPosted: Mon Jan 08, 2007 2:44 pm    Post subject: sudo Reply with quote

ok, so i have only been using linux varients for only 2.5 years. 80% of that time was with ubuntu. i have switched to blag for many reasons - too many to go into, but photoshop is the no.1.

now in all my experience, "sudo (command/file/whatever)" has always granted root ablility and performed the task. i cant seem to get this working. since i have switched to blag, for root operations i log out of user and back in as root. that seriously slows the proccess down. espescially since i am trying to fix the resolution issue my my viewmate monitor. i want to just "sudo nano /etc/X11/xorg.conf" or even when i want to "sudo nano /etc/fstab" i have to login as root.

i am running the 50003 release. am i just doing it wrong, or is there a dif command than "sudo" for blag?

peace and love
ande

ps, man i write long questions!


_________________
do what nobody else does, and do it better than anyone else can
ewl
PostPosted: Mon Jan 08, 2007 3:10 pm    Post subject: Reply with quote

Go to an xterminal, log on as root (su). Edit /etc/sudoers with nano (or a text editor of your choice):
Code:
nano /etc/sudoers


Then scroll down to somewhere near the bottom and enter the following;

Code:
[your userid]  ALL=(ALL)       ALL


Of course, in place of [your userid] put your user id. ;)

Save the file, and that's it. You should now be able to use sudo with your user password.


_________________
Ed LaBonte
ande
PostPosted: Mon Jan 08, 2007 5:02 pm    Post subject: Reply with quote

sweet...

thank you so much. as soon as i stop goofing off at work i will fix this. now that you mention this, the retard inside steps aside and reveals a memory of reading this in an article one time two years ago.

but, thank you very much.

peace and love
ande


_________________
do what nobody else does, and do it better than anyone else can
ande
PostPosted: Mon Jan 08, 2007 7:10 pm    Post subject: Reply with quote

oh yeah, that's much better!

_________________
do what nobody else does, and do it better than anyone else can
ewl
PostPosted: Thu Jan 11, 2007 6:26 pm    Post subject: Reply with quote

Just one more point, if you want it easier than Ubuntu, then

Code:
[userid]     All=(All)       NOPASSWD: ALL


Then you don't even have to enter your password. But it still will only work with your user account. Of course if there is someone else using your computer under your account, that might not be a good idea.


_________________
Ed LaBonte
jebba
PostPosted: Thu Jan 11, 2007 7:22 pm    Post subject: Reply with quote

Uh, that sudo suggestion of ALL ALL, etc looks quite dangerous....
john maclean
PostPosted: Fri Jan 12, 2007 12:33 pm    Post subject: Reply with quote

I prefer to use the form of-

username hostname=/path/to/command, /path/to/another/command

With a comma seperated lists to the command that I want myself, or users on my systems to run as sudo root. Use the full path to the command.

To check the syntax of the sudo file run visudo -c and it will check the file /etc/sudoers for you.


_________________
We need shells, lots of shells.
London, GMT +1
ewl
PostPosted: Fri Jan 12, 2007 6:30 pm    Post subject: Reply with quote

jebba wrote:
Uh, that sudo suggestion of ALL ALL, etc looks quite dangerous....

That's basically how Ubuntu does it, Except they give those privileges to the admin group and make the first user a member of that. But then he has all those privileges.

In Ubuntu there is no password available for the root account. Users are encouraged to use sudo for everything that requires root privileges and the first user account is given those privileges.


_________________
Ed LaBonte
jebba
PostPosted: Fri Jan 12, 2007 9:20 pm    Post subject: Reply with quote

Well, actually I meant the "NOPASSWD: ALL" seemed dangerous...
ewl
PostPosted: Sat Jan 13, 2007 5:15 pm    Post subject: Reply with quote

yeah, maybe you're right. But you still have to use sudo. And it only works with that account.
But, maybe it was a bad idea...
You have to realize I'm incredibly lazy, so these ideas come to me naturally. ;)


_________________
Ed LaBonte
weyasey
PostPosted: Sat Jan 13, 2007 10:00 pm    Post subject: Reply with quote

ewl wrote
Quote:
You have to realize I'm incredibly lazy, so these ideas come to me naturally. ;)


I have to confess, I have the same problem with being lazy so I always use the NOPASSWD:ALL fix too ;)


_________________
If it hurts it's because you're alive.
Templar
PostPosted: Mon Jan 15, 2007 8:12 pm    Post subject: Reply with quote

I just type: su root
it askes for a password, I put my root password in, then it is ready to go!


_________________
The Constitution isn't just a good idea....It's the Law
Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support
Page 1 of 1

Protected by Anti-Spam ACP