| View previous topic :: View next topic |
| Author |
Message |
ande
|
Posted: Mon Jan 08, 2007 2:44 pm Post subject: sudo |
|
|
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
|
Posted: Mon Jan 08, 2007 3:10 pm Post subject: |
|
|
Go to an xterminal, log on as root (su). Edit /etc/sudoers with nano (or a text editor of your choice):
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
|
Posted: Mon Jan 08, 2007 5:02 pm Post subject: |
|
|
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
|
Posted: Mon Jan 08, 2007 7:10 pm Post subject: |
|
|
oh yeah, that's much better!
|
_________________ do what nobody else does, and do it better than anyone else can |
|
 |
ewl
|
Posted: Thu Jan 11, 2007 6:26 pm Post subject: |
|
|
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
|
Posted: Thu Jan 11, 2007 7:22 pm Post subject: |
|
|
Uh, that sudo suggestion of ALL ALL, etc looks quite dangerous....
|
|
|
 |
john maclean
|
Posted: Fri Jan 12, 2007 12:33 pm Post subject: |
|
|
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
|
Posted: Fri Jan 12, 2007 6:30 pm Post subject: |
|
|
| 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
|
Posted: Fri Jan 12, 2007 9:20 pm Post subject: |
|
|
Well, actually I meant the "NOPASSWD: ALL" seemed dangerous...
|
|
|
 |
ewl
|
Posted: Sat Jan 13, 2007 5:15 pm Post subject: |
|
|
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
|
Posted: Sat Jan 13, 2007 10:00 pm Post subject: |
|
|
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
|
Posted: Mon Jan 15, 2007 8:12 pm Post subject: |
|
|
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 |
|
 |
|