LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   unable to run su root command in fedora (https://www.linuxquestions.org/questions/fedora-35/unable-to-run-su-root-command-in-fedora-688259/)

jatin 12-04-2008 05:36 AM

unable to run su root command in fedora
 
Anybody has marked that if you logged in as ordinary user in fedora 10 and try to run su root ... you can not run some commands suppose do this

log in as a ordinary user try to su roo your prompt will be changed to [root@user]

now run "nautilus --browser" you will get this Error

-----------------------------------------------------------
(nautilus:4382): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
-------------------------------------------------------------

Infect it should open file browser as root

but file browser will open as ordinary user


What it could be....??????

anyone facing this problem.... does anyone knows the solution ..if yes please post it here


Thnx

Regards

edwardsdigital 12-04-2008 07:12 AM

Im not 100% sure (I use Archlinux) about the issue, but try running the command as:

$sudo nautilus

when it asks for a password use YOUR users password and see if you get the same error.

I haven't dropped to root in gnome using su in a long time, so I cant remember if I got that error before on not. I do know that by default, gnome wont allow root to log onto the system (that can be changed easily, but not recommended). I don't know for sure if this policy has anything to do with your problem.

jatin 12-06-2008 02:44 AM

Quote:

Originally Posted by edwardsdigital (Post 3364179)
Im not 100% sure (I use Archlinux) about the issue, but try running the command as:

$sudo nautilus

when it asks for a password use YOUR users password and see if you get the same error.

I haven't dropped to root in gnome using su in a long time, so I cant remember if I got that error before on not. I do know that by default, gnome wont allow root to log onto the system (that can be changed easily, but not recommended). I don't know for sure if this policy has anything to do with your problem.



---------------------------------------------------

in fedora 9 that command runs fine... without any problem.....

problem is only with fedora core 10


for $sudo nautilus you must have to allow that ordinary user to run su*
you have to edit some .conf files. I don't want to allow any of the user to run su command (only root can run the su*) for security reason

Regards
Thnx

XavierP 12-06-2008 05:27 AM

Moved: This thread is more suitable in Fedora and has been moved accordingly to help your thread/question get the exposure it deserves.

sreeharsha.t 07-23-2009 05:24 AM

I have seen this post lately but here is the solution for it.

As a normal user you need to permit other(root) users to use your desktop..you can do that with the following command:

Code:

xhost +local:
this command will allow access for all the local users to your desktop meaning anyone who logs into your desktop can set DISPLAY env variable to :0 and start a GUI program which will appear on your screen.

to disallow access

Code:

xhost -local:
Hope this helps.


All times are GMT -5. The time now is 07:45 AM.