This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to change file permissions

Tags: None
(comma "," separated)
Bumpalot
Registered Member
Posts
57
Karma
0
OS

How to change file permissions

Thu Apr 12, 2012 3:09 pm
Am a newbie to Kubuntu 4.7.1 & need to change permission of a file owned by root. Tried this:
/etc/X11$ kdesudo chmod a+rw xorg.conf
Would appreciate your help.
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: How to change file permissions

Thu Apr 12, 2012 5:00 pm
try:
Code: Select all
 sudo chmod a+rw xorg.conf


OpenSuse Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
Karma
0
OS

Re: How to change file permissions

Sat Apr 14, 2012 3:31 pm
Ran sudo chmod a+rw /etc/X11/xorg.conf
On checking file, it is still owned by root
Reason for needing to update this file:
Changing - NVidia X Server settings - X Server Display confgiuration
On saving:
Failed to parse existing X config file '/etc/X11/xorg.conf'! OK
Save X Configuration /etc/X11/xorg.conf (merg button inaccessible OK
Save - Unable to open X config file '/etc/X11/xorg.conf' for writing.
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: How to change file permissions

Sat Apr 14, 2012 4:03 pm
pretty clueless, all I can think is that there's something amiss in xorg.conf

I'm thinking you might need to generate a new xorg.conf file as yours maybe corrupt, renaming it and restating the pc should force a regeneration of the file with default settings


moved to Operating System specific, as it is not a KDE issue


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25

Re: How to change file permissions

Sat Apr 14, 2012 4:21 pm
fyi there is a nvidia-setting program available, for changing some settings


OpenSuse Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
Karma
0
OS

Re: How to change file permissions

Sun Apr 15, 2012 3:14 pm
Summary of progress(??) so far:
sudo chmod a+rw xorg.conf enabled me to delete contents, but renaming the file not allowed.
Rebooted -
ran sudo chmod a+rw xorg.conf
Changed - NVidia X Server settings - X Server Display confgiuration
On saving:
Failed to parse existing X config file '/etc/X11/xorg.conf'! OK
Save X Configuration /etc/X11/xorg.conf (merg button inaccessible) OK
Save - Msg: "Unable to open X config file '/etc/X11/xorg.conf' for writing."
xorg.conf file
Any other ideas?
User avatar
google01103
Manager
Posts
6668
Karma
25
doing a Google search brings up a fair number of similar issues, seem to be mostly *buntu by the 1st results page, though no idea why it would be. Maybe they will be of help

https://www.google.com/search?client=op ... el=suggest

http://ubuntuforums.org/showpost.php?s= ... ostcount=9
http://ubuntuforums.org/showpost.php?p= ... ostcount=5


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25

Re: How to change file permissions

Sun Apr 15, 2012 8:44 pm
please post exactly what worked for you in case someone else has the same issue


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: How to change file permissions

Sun Jun 24, 2012 7:50 am
I see two better options than changing the file permissions of xorg.conf:
1. run nvidia-settings as root: "kdesu nvidia-settings"
2. save a new xorg.conf file to your home directory, and copy it to /etc as root: "sudo cp xorg.conf /etc/X11/xorg.conf"

Also, as has been said already, there's two programs, "chown" and "chmod". chmod will only change the permission flags, not the owner. If you want to change the owner, use chown. However, chmod a+rw should also enable everyone to write to the file afaik.

Greetings,
Sven


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]