Access Denied
This is a discussion about Access Denied in the Linux Customization Tweaking category; How do I stop getting Access Denied messages when I try to change anything? I have been attempting to change my wallpaper by pasting a jpeg file into /usr/share/wallpapers/. I keep getting Access Denied, can not write to directory.
How do I stop getting "Access Denied" messages when I try to change anything? I have been attempting to change my wallpaper by pasting a jpeg file into /usr/share/wallpapers/. I keep getting "Access Denied, can not write to directory." I tried signing in as root, changing to security level 1, changing permissions. Result: OS crashed, I have to do another complete re-install. I had a similar problem when I was trying to add a new printer driver. Any suggestions?
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Responses to this topic
...and what distro are you using? What GUI, KDE or Gnome?
OP
I'm using Mandrake 10.1 with KDE. I have downloaded all the updates & bug fixes.
maybe (as root) try:
$ touch > /.forcefsck
$ shutdown -r now
??
(that's from memory - it -is- .forcefsck isn't it?)
isn't there also an lsattr command so you can check for any extended permissions
in /usr/share/wallpapers ?
$ touch > /.forcefsck
$ shutdown -r now
??
(that's from memory - it -is- .forcefsck isn't it?)
isn't there also an lsattr command so you can check for any extended permissions
in /usr/share/wallpapers ?
su
enter root password
chmod -c 777 /usr/share
enter root password
chmod -c 777 /usr/share
OP
danleff,
Thanks for your suggestion. It didn't quite work - I kept getting a "not enough arguments" message. However, after some trial and error I evolved to the following Konsole command: chmod ugoa+rw 777 usr/share/wallpapers. Even with that, I got a strange error message, "No such directory as 777." However, it still worked & I am finally able to write to my file. Thanks again.
Thanks for your suggestion. It didn't quite work - I kept getting a "not enough arguments" message. However, after some trial and error I evolved to the following Konsole command: chmod ugoa+rw 777 usr/share/wallpapers. Even with that, I got a strange error message, "No such directory as 777." However, it still worked & I am finally able to write to my file. Thanks again.
Look at your syntax. I think it should have been;
chmod ugoa+rw /usr/share/wallpapers
No need for 777 when using direct characters to set permissions - chmod thought it was a file.
chmod ugoa+rw <name-of-file>
or;
chmod ugoa+rw <directory>
Also, did you leave off the / before usr?
chmod ugoa+rw /usr/share/wallpapers
No need for 777 when using direct characters to set permissions - chmod thought it was a file.
chmod ugoa+rw <name-of-file>
or;
chmod ugoa+rw <directory>
Also, did you leave off the / before usr?
Can't you also add yourself to the Sudoers list in /etc/sudoers and add the following line at the end (and of course you have to edit this file as root):
<username> ALL=NOPASSWD
This way it won't ever ask you for the root password again, but I think you can also do it for that specific folder or file as well if you are worried about your security:
<username> ALL=NOPASSWD: /usr/share/wallpapers/
<username> ALL=NOPASSWD
This way it won't ever ask you for the root password again, but I think you can also do it for that specific folder or file as well if you are worried about your security:
<username> ALL=NOPASSWD: /usr/share/wallpapers/