Author Topic: Why no SuperUser mode for Dolphin?  (Read 3379 times)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Why no SuperUser mode for Dolphin?
« Reply #30 on: July 17, 2010, 10:04:16 AM »
You should have problems if you're trying to access another directory that your user doesn't have permission for. You should use 'su -' instead of 'su'. That will grant you full permissions for all directories.

There is no problem with the method I posted.
The only difference in the two commands is the location in the filesystem of the resulting root prompt .......  unless there is something I am not aware of.

So, IMO, there is no difference between these two ....

Code: [Select]
[user@Dell ~]$ su -
Password:
[root@Dell ~]#

Code: [Select]
[user@Dell ~]$ su
Password:
[root@Dell user]# cd ~
[root@Dell ~]#


If there is something I am missing please let me know.

*******

On the matter of running Dolphin as root, it appears that

Code: [Select]
$ kdesu dolphin
works ......  but attempting to open a text file with root access permission only (fstab, sudoers etc), by clicking on it
causes an error, which result in a zombie process which I have to reboot to clear. The error says ......

Quote
KDEinit could not launch '/usr/bin/kwrite'

Using the method posted previously there are no popup errors or zombies and all files are accessible.

regards.

Offline ruel24

  • Hero Member
  • *****
  • Posts: 2787
Re: Why no SuperUser mode for Dolphin?
« Reply #31 on: July 17, 2010, 10:25:18 AM »
You should have problems if you're trying to access another directory that your user doesn't have permission for. You should use 'su -' instead of 'su'. That will grant you full permissions for all directories.

There is no problem with the method I posted.
The only difference in the two commands is the location in the filesystem of the resulting root prompt .......  unless there is something I am not aware of.

So, IMO, there is no difference between these two ....

From Linfo.org:

"The hyphen has two effects: (1) it switches the current directory to the home directory of the new user (e.g., to /root in the case of the root user) and (2) it changes the environmental variables to those of the new user. That is, if the first argument to su is a hyphen, the current directory and environment will be changed to what would be expected if the new user had actually logged on to a new session (rather than just taking over an existing session)."

It's been my experience that if I want to access files in another directory I need to include the hyphen.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Why no SuperUser mode for Dolphin?
« Reply #32 on: July 17, 2010, 11:01:19 AM »
Quote
(2) it changes the environmental variables to those of the new user.

What are these environmental variables?

I have had no difficulty accessing files using either command .....

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Why no SuperUser mode for Dolphin?
« Reply #33 on: July 17, 2010, 11:12:15 AM »
Simple explanation:

su --- Use this to work as root in the user environment; i.e. [root@localhost username] where the user's directory is being used with root functions.

su - --- Use this to change the working environment to root; i.e. [root@localhost] where the root directory is used.

« Last Edit: February 09, 2012, 03:22:50 AM by Neal ManBear »