Results 1 to 6 of 6

Thread: Non root access to Yast2

  1. #1
    tommyjo05 NNTP User

    Default Non root access to Yast2

    Hi,
    Can someone tell me how to grant a non root user access to the yast2 GUI in SUSE 9 to administer user accounts. I have already set up a user and grant sudo access to /sbin/yast2. This works fine for the text yast version but not
    GUI version.

    Thanks in advance

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,415

    Default Re: Non root access to Yast2

    That is because sudo is a command line option; it won't affect GUI operation. To the best of my knowledge there is no GUI option. On the assumption that someone using sudo knows what they are doing, this also helps to prevent naive users from doing silly things.

  3. #3
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    41

    Default Re: Non root access to Yast2

    I am not sure about SUSE 9, but the same problem happens in all recent versions of openSUSE anyway. Here is a solution I found today. It involves disabling the access control of Xorg, which is a security weakness, so don't forget the last part, which re-enables the access control:

    Code:
    xhost +; sudo -E /sbin/yast2; xhost -

  4. #4
    Join Date
    Jul 2008
    Location
    Pottstown PA, US
    Posts
    150

    Default Re: Non root access to Yast2

    Im not sure if this is even possible...but if you are able to give them access to the user admin tool, what prevents this non root user from adding himself to the "root" group (can you even do that--add a regular user to the "root" group?)

    the simplest way to execute a GUI app as root is to use the kdesu command (i.e. kdesu /sbin/yast2

    In its default configuration, kdesu will ask for the root password. This is somewhat of a conflict of interest if you have sudo set up.

    to make kdesu work with sudo, you have to edit the following file (or create it if it does not exist)

    /opt/kde3/share/config/kdesurc

    change that file to read the following:
    [super-user-command]
    super-user-command=sudo

    the next time you run kdesu it will ask you for the user's password, not root's.
    Desktop| opensuse11.3| Core2Q Q9450 | nVidia GeForce 8800 GT
    Server| Arch | mythtv 024 | Core2D E7500| nVidia GT210
    HTPC| opensuse11.3 | mythtv 024| Atom 330 | ASUS AT3IONT-I Deluxe | nVidia ION
    Laptop| System76 | opensuse11.3| Core2D P8600 | nVidia 9300M

  5. #5
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    41

    Default Re: Non root access to Yast2

    This is really useful.
    Thanks for the hint.

  6. #6
    Join Date
    Jul 2008
    Location
    Pottstown PA, US
    Posts
    150

    Default Re: Non root access to Yast2

    no problem
    Desktop| opensuse11.3| Core2Q Q9450 | nVidia GeForce 8800 GT
    Server| Arch | mythtv 024 | Core2D E7500| nVidia GT210
    HTPC| opensuse11.3 | mythtv 024| Atom 330 | ASUS AT3IONT-I Deluxe | nVidia ION
    Laptop| System76 | opensuse11.3| Core2D P8600 | nVidia 9300M

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •