su: This applet requires root priviledges!

Post Reply
Daan
Posts: 98
Joined: Thu Feb 05, 2009 8:46 pm

su: This applet requires root priviledges!

Post by Daan » Wed Jul 01, 2009 8:16 pm

I can't switch user. The bad spelling suggests it's a LaCie thing.

Code: Select all

daan@HAL daan $ su
su: This applet requires root priviledges!
It doesn't have anything to do with permissions of the su file I think.

Code: Select all

daan@HAL daan $ which su
/bin/su
daan@HAL daan $ ls -l /bin/su
lrwxrwxrwx    1 root     root            7 Oct 16  2008 /bin/su -> busybox
Anyone knows how to change this?

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: su: This applet requires root priviledges!

Post by Mijzelf » Thu Jul 02, 2009 11:13 am

sudo su ?

Daan
Posts: 98
Joined: Thu Feb 05, 2009 8:46 pm

Re: su: This applet requires root priviledges!

Post by Daan » Fri Jul 03, 2009 7:08 pm

I've tried that.

Code: Select all

HAL /root # cat /opt/etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# 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

# Runas alias specification

# User privilege specification
root	ALL=(ALL) ALL
daan	All=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL) ALL

# Same thing without a password
# %wheel	ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

Code: Select all

daan@HAL daan $ sudo su

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
daan is not allowed to run sudo on HAL.  This incident will be reported.
daan@HAL daan $ cat /opt/etc/sudoers
cat: /opt/etc/sudoers: Permission denied
daan@HAL daan $

Code: Select all

HAL /root # ls -l /opt/bin/sudo 
-rwsr-xr-x    1 root     root       115228 Dec 24  2008 /opt/bin/sudo

Daan
Posts: 98
Joined: Thu Feb 05, 2009 8:46 pm

Re: su: This applet requires root priviledges!

Post by Daan » Mon Oct 05, 2009 10:05 pm

I changed the sudoers file with visudo. The entry for daan wasn't there anymore, but I added it again, and now "sudo su" works. :)

Post Reply