Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-20-2007, 04:07 AM   #1
Registered: Mar 2006
Location: Arizona
Distribution: Linux Mint 17, Ubuntu 14.04
Posts: 89

Rep: Reputation: 15

I have read about changing permissions until I'm cross-eyed, and maybe my 12 medications don't help either! Could someone give me a specific entry for changing a file and then I'll work my way from there?

The file is "etc" in FILE SYSTEM with a location of /, volume /. (I have recently added Kubuntu to my Ubuntu Dapper and the DEFAULT DISPLAY MANAGER file is in the "X11" file within the "etc" file.)

When I open the "etc" file and click on permissions, it says I don't have ownership.

Could you give me the exact command to change the root permission for this file please? I'm still pretty new, 100% Linux now, but do have some issues grasping things until they click..thanks.
Old 06-20-2007, 04:12 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
well back up and explain what you actually want to acheive... what's the end goal here? your user in ubuntu is not root, and shouldn't be, as such you are not meant to "own" /etc (a directory, not a file btw...) if you did, things would probably break a lot...
Old 06-20-2007, 04:14 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You shouldn't probably be changing the permissions of /etc directory (which is a file, that's correct, but a special kind of file) nor anything under it. If you need to change something, use either root account (in Ubuntu you'll need to first unlock it) or simply sudo which is better in cases like this. For example you can run this command to edit some file that you don't have permissions for, if you have sudo configured (and you do, if you're using the first user account created during Ubuntu setup):
gksudo gedit /etc/X11/somefile-that-you-cannot-access
..then it asks for your (own) password and once you type it in, the file is opened with 'gedit'. Works for clear-text files. If you're not interested in graphical editors, use 'sudo' instead of 'gksudo' (the latter one is graphical dialog) and a command-line text editor.
Old 06-20-2007, 05:31 AM   #4
cheap freelancer
LQ Newbie
Registered: Jun 2007
Distribution: redhat
Posts: 6

Rep: Reputation: 0
change the ownership using chown command
Old 06-20-2007, 08:09 AM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
If you chown /etc you WILL break sh*t ... I'm with acid_kewpie on this one.
Old 06-20-2007, 12:34 PM   #6
Registered: Mar 2006
Location: Arizona
Distribution: Linux Mint 17, Ubuntu 14.04
Posts: 89

Original Poster
Rep: Reputation: 15

Thank you all for your input, bouncer gave me a command and that is what I needed.

Here is what I was trying to do, based on KUBUNTU instructions:

"To change default from KDE to GNOME you need to change this file:


The default can always be changed later by modifying the:

/etc/X11/default-display-manager file

For KDM, the file should read /usr/bin/kdm;

for GDM, the file should read /usr/sbin/gdm"

So, When I want to change this default from KDE to GNOME, I had to get permission to do this, which prompted my question. Secondly, I was previously successful in changing this from GDM TO KDM, SO I did something right, but when trying to change it back I draw a blank.

Also, now that I have KDE, I'm not sure I like the overall features compared to Ubuntu so would like to uninstall it, but when use Synaptic Manager and uninstall all KDE items, I still am getting the KDE log-in screen after my initial brown Ubuntu screen appears and the system loads. Thx agin


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 11:23 AM
what Permission can I use for that ? utw-mephisto Linux - General 1 12-21-2005 09:12 AM
No permission to PM? Newb001 LQ Suggestions & Feedback 5 06-13-2004 05:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

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