mdemers883 Posted January 29, 2004 Report Share Posted January 29, 2004 I start up Suse and log in as a user. I then go to try access yast, it then asks for an admin password. I give my correct password and click run. Then nothing happens for a while then a window pops up ( Error gnomesu) which says "timeout while trying to execute 'su") I can get into yast fine if I logout then log back in as root and try to use yast...but I think I should be able to access it still when I'm logged in as a user. Any ideas? mark Quote Link to comment Share on other sites More sharing options...
ac_dispatcher Posted January 30, 2004 Report Share Posted January 30, 2004 Im not at home, but Ill try to help. When Im in KDE and need "root" to enter a command I use - kdesu [command]. I think their is a GNOME equivilant (gsu?) but I havent found out yet (havent looked either). here is what I have done to help myself in both KDE and others. Make sure you are part of the "wheel" group. (in yast edit users and click "wheel"). Then open your favorite text editor as root. open /etc/sudoers In there you will see something like # %wheel ALL = (ALL) ALL NOPASSWD: ALL uncomment it %wheel ALL = (ALL) ALL NOPASSWD: ALL here is some info: http://www.courtesan.com/sudo/man/sudoers.html then just $sudo [command] What you could also do instead of putting yourself in "wheel" is add the line: mdemers883 ALL=(ALL) yast2 Of course change mdemers883 with your SUSE login name... this is translated as: user machine=(effective user) command now if you wanted to be able to use sudo for all commands (not just yast): mdemers883 ALL=(ALL) ALL Im no Linux expert so I hope other will correct me if Im wrong here. Quote Link to comment Share on other sites More sharing options...
mdemers883 Posted January 30, 2004 Author Report Share Posted January 30, 2004 thank you :D I'll give that a try tonight when I get home from work Mark Quote Link to comment Share on other sites More sharing options...
mdemers883 Posted January 30, 2004 Author Report Share Posted January 30, 2004 I added my user to the wheel group. I then changed the sudoers file to allow wheel to do all but it still din't work right. So I then changed the sudoers file to allow "luser" which is my user account to do all. Here is the file: # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification # Defaults specification Defaults targetpw %users ALL=(ALL) ALL # User privilege specification root ALL=(ALL) ALL # Uncomment to allow people in group wheel to run all commands %luser ALL=(ALL) ALL "/etc/sudoers" 30L, 617C and here's what happens when I try to "sudo yast" and give the admin password: luser@linux:~> sudo yast Password: luser is not in the sudoers file. This incident will be reported. What do you guys think? Mark Quote Link to comment Share on other sites More sharing options...
mdemers883 Posted January 30, 2004 Author Report Share Posted January 30, 2004 oh, and as a sidenote I edited the file with vi, I"m not sure if that makes a difference. Mark Quote Link to comment Share on other sites More sharing options...
jlc Posted January 31, 2004 Report Share Posted January 31, 2004 I use sudo also, but you can also do the following in Suse # sux #passwd #yast2 Quote Link to comment Share on other sites More sharing options...
mdemers883 Posted January 31, 2004 Author Report Share Posted January 31, 2004 I use sudo also, but you can also do the following in Suse # sux #passwd #yast2 thank you VERY much :D I tried "sudo yast2" and it worked just fine :D Mark Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.