Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th July 2012, 10:14 PM
pratporetw Offline
Registered User
 
Join Date: Jun 2012
Location: India
Posts: 27
linuxfirefox
Become root user in GUI

I got fed up with this thing that while working in fedora GUI i can't modify filesystem files and directories. I can make myself root from the terminal but i can't do all my tasks using terminal everytime. I want to add my user in the root list so that i an easily access files and can modify them.

Please someone quickly solve this problem as am in urgent need of being a root.
Reply With Quote
  #2  
Old 14th July 2012, 10:31 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: Become root user in GUI

if you logged in in the terminal as root, you could also start file manager or texteditors from there. Would this be sufficient?

and if you use "su" to switch to root, you maybe can't open some texteditors from terminal like gedit. But with "su -" it should work. You can also start thunar or nautilus from terminal.
Reply With Quote
  #3  
Old 14th July 2012, 10:47 PM
pratporetw Offline
Registered User
 
Join Date: Jun 2012
Location: India
Posts: 27
linuxfirefox
Re: Become root user in GUI

but i want even other applications to use system files. like i made file /var/www/html/smarty.php

This file needs a file from /usr/local/lib/smarty/libs/.

when i run /localohost/smarty.php in firefox it shows me this error

Code:
Warning: require_once(/usr/local/lib/Smarty-3.1.11/libs/Smarty.class.php): failed to open stream: Permission denied in /var/www/html/smarty.php on line 5

Fatal error: require_once(): Failed opening required '/usr/local/lib/Smarty-3.1.11/libs/Smarty.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/smarty.php on line
Wanna get rid of this error

---------- Post added at 03:17 AM ---------- Previous post was at 03:05 AM ----------

Aaah got one problem in the trick you suggested.

When i did run nautilus from terminal being a root user, it gives me error
Code:
Could not register the application: The connection is closed
and when i tried running gedit it gave me this error
Code:
 (gedit:18245): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


** (gedit:18245): WARNING **: Could not connect to session bus
[root@prateek prateek]# nautilus
Could not register the application: The connection is closed
but these commands run fine being a normal user
Reply With Quote
  #4  
Old 14th July 2012, 11:00 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: Become root user in GUI

ok to get write and read access for the folder /var/www/html I would add my user to the group apache (either via the graphical user and groups utility or via the file /etc/group). And then enter following commands:
Code:
su
chgrp apache -R /var/www/html
chmod g+rw -R /var/www/html
then you probably have to set some SELinux flags to on. Interesting flags for this for example: httpd_read_user_content, if you want to connect to a database httpd_can_network_connect_db, maybe httpd_builtin_scripting.

that's how you enable a flag (it will might need several minutes until it completed this operation):
Code:
setsebool -P httpd_can_network_connect on
you can check SELinux flags from terminal via
Code:
getsebool -a | grep httpd
or
Code:
getsebool -a | grep user


---------- Post added 15th July 2012 at 12:00 AM ---------- Previous post was 14th July 2012 at 11:56 PM ----------

Quote:
Originally Posted by pratporetw View Post
[...]
[/COLOR]Aaah got one problem in the trick you suggested.

When i did run nautilus from terminal being a root user, it gives me error
Code:
Could not register the application: The connection is closed
and when i tried running gedit it gave me this error
[...]
did you login as root via "su -" (the "-" is important)?

If it still doesn't work, you can just install leafpad and thunar and use this instead, this will certainly work also from terminal.

Last edited by Fenrin; 14th July 2012 at 11:07 PM.
Reply With Quote
  #5  
Old 14th July 2012, 11:09 PM
pratporetw Offline
Registered User
 
Join Date: Jun 2012
Location: India
Posts: 27
linuxfirefox
Re: Become root user in GUI

Thanks
Unfortunately this didn't worked for me. Still getting the same error. M frustrated with this

---------- Post added at 03:39 AM ---------- Previous post was at 03:36 AM ----------

Sorry i made mistake in invoking the command su. Thanks for reminding me.

But my firefox problem is still not solved
Reply With Quote
  #6  
Old 14th July 2012, 11:10 PM
oboedad55's Avatar
oboedad55 Offline
Registered User
 
Join Date: Nov 2010
Location: Amerika
Age: 57
Posts: 35
linuxfirefox
Re: Become root user in GUI

Install "beesu". Then assuming for example, gnome then alt-f2 and "beesu nautilus".
__________________
Fedora 17, Arch Linux x86_64
Registered Linux user #436067
Reply With Quote
  #7  
Old 14th July 2012, 11:13 PM
pratporetw Offline
Registered User
 
Join Date: Jun 2012
Location: India
Posts: 27
linuxfirefox
Re: Become root user in GUI

@oboedad55

Please clarify what this beesu do. I think this will just let me use nautilus as root user i think. But this problem is already solved using su -
Reply With Quote
  #8  
Old 14th July 2012, 11:41 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: Become root user in GUI

Quote:
Originally Posted by pratporetw View Post
[...]

But my firefox problem is still not solved
maybe this command helps:
Code:
chcon -R -h -t httpd_sys_content_t /var/www/html
a guide about SELInux and apache server issues is here (interesting parts especially "Apache Web Server configuration" and "SELinux security contexts").
Reply With Quote
  #9  
Old 14th July 2012, 11:50 PM
solo2101's Avatar
solo2101 Offline
Registered User
 
Join Date: Jan 2010
Location: behind that screen...
Posts: 618
linuxchrome
Re: Become root user in GUI

no one recommends what you ask for... that said...

this guide was really helpful for me

http://www.tejasbarot.com/2011/11/09...-on-fedora-16/

---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------

usually the
Code:
[solo@f16 ~]$ su -
Password: 
[root@f16 ~]# nautilus  (or any other program)
'Initializing nautilus-gdu extension
works for me

Last edited by solo2101; 15th July 2012 at 09:22 PM. Reason: cause my grammar sucks
Reply With Quote
  #10  
Old 15th July 2012, 12:15 AM
pratporetw Offline
Registered User
 
Join Date: Jun 2012
Location: India
Posts: 27
linuxfirefox
Re: Become root user in GUI

thanks for the guide solo2101.........

this was my actual problem that no one was able to solve.
But i am glad that i learned the "su -" method too.

Thanks to all
Reply With Quote
Reply

Tags
gui, root, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root user login warning:This session is running as a privileged user jevinlin Using Fedora 2 4th October 2008 10:46 AM
user@domain bounced back to root though user has a mail box nonlin Servers & Networking 9 8th July 2008 01:25 PM
usb disks automount as root.root 755 - user cannot write!:( mrmailer Using Fedora 0 3rd April 2007 05:18 AM
MySQL, PHP and Apache = Help new user cannot connect, but root user can?? judobrian Using Fedora 3 24th February 2007 01:12 AM


Current GMT-time: 03:25 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat