Jump to content

Suse 9.0


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...