LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2015, 09:52 AM   #1
doctore
LQ Newbie
 
Registered: Apr 2015
Distribution: CentOS 7
Posts: 17

Rep: Reputation: Disabled
GUI + permissions question


Is there a way to elevate privileges in GUI?

For example, when trying to open a file that requires root to view, unlike Windows, where I would be presented with a prompt asking for admin username/password, Linux would just say that I need to be root to open.
 
Old 04-14-2015, 10:49 AM   #2
Bruce783
LQ Newbie
 
Registered: Apr 2015
Location: Kommetjie, Cape Town, ZA
Distribution: Gentoo
Posts: 11

Rep: Reputation: Disabled
I don't know what X11 display manager you are using but you can always open a shell and change the file permissions. Do you know how to do this?
 
Old 04-14-2015, 11:01 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Please don't just change permissions of files, the better option is to either start your file-manager as root or use a file-manager that let's you open files as root, for example Thunar (with the appropriate Custom Action).
 
2 members found this post helpful.
Old 04-14-2015, 11:04 AM   #4
Bruce783
LQ Newbie
 
Registered: Apr 2015
Location: Kommetjie, Cape Town, ZA
Distribution: Gentoo
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Please don't just change permissions of files
Why don't you recommend changing file permissions. It's dead simple to do.

However, there are multiple ways to achieve this task.
 
Old 04-14-2015, 11:13 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Bruce783 View Post
Why don't you recommend changing file permissions. It's dead simple to do.
Of course it is, but it can have dangerous consequences. For example, if you want to edit the /etc/sudoers file using a GUI text editor (not that this is in any way recommended) on a distribution that uses sudo for providing root privileges to the user and you change permissions on that file you have effectively locked yourself out of the system with that, since sudo refuses to use an /etc/sudoers file with permissions not set in a specific way. You would have to repair this from a Live-session before you could use the system again properly.
 
2 members found this post helpful.
Old 04-14-2015, 11:43 AM   #6
doctore
LQ Newbie
 
Registered: Apr 2015
Distribution: CentOS 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
Bruce - I have GNOME. I can change the permissions in CLI, but that defeats the purpose, which is to open the file in GUI, without using CLI.

I guess Thunar would do the trick.

Man, coming from Windows, I can tell you guys that using Linux as a desktop is real PITA Much respect for all of you using it as an everyday client machine!
 
Old 04-14-2015, 01:19 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by doctore View Post
Man, coming from Windows, I can tell you guys that using Linux as a desktop is real PITA Much respect for all of you using it as an everyday client machine!
Believe me, this is only because you have been forced by Windows into bad (and sometimes weird) habits. I have used Windows in the past and now am using Linux exclusively and I am horrified when I have tro work with a Windows machine.
 
Old 04-14-2015, 01:40 PM   #8
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Using gksu is the right way to open GUI applications a root I guess
 
1 members found this post helpful.
Old 04-14-2015, 11:00 PM   #9
doctore
LQ Newbie
 
Registered: Apr 2015
Distribution: CentOS 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Believe me, this is only because you have been forced by Windows into bad (and sometimes weird) habits. I have used Windows in the past and now am using Linux exclusively and I am horrified when I have tro work with a Windows machine.
I don't know, the other day it took me literally hours to install Skype, now I am dreading having to install anything, lol. It's like - can you just give me an .exe to double-click and be done with it?

Nah, I'll learn it, but will be posting on this forum A LOT!
 
Old 04-15-2015, 05:14 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by doctore View Post
Nah, I'll learn it, but will be posting on this forum A LOT!
That's what we here for, to help people with their Linux problems. I know that the transition can be hard, but most of the people here have been through the same and won't miss Windows a tiny bit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 10:06 AM
Changed permissions on root and now gui looks strange paradox1uk Linux - General 1 08-07-2008 04:09 AM
Opening GUI application via another user's permissions itz2000 Linux - Newbie 3 08-28-2007 03:44 PM
root permissions via GUI nick1 Linux - Newbie 2 03-01-2006 03:37 PM
Permissions question: what does the Thaidog Linux - General 7 03-29-2005 11:16 PM


All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration