Access Denied

:o 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...




Topic Options
#162157 - 05/12/05 08:51 PM Access Denied
BARTICLE Offline
newbie

Registered: 03/03/05
Posts: 25
shocked 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?

Top
Advertisement
#162167 - 05/13/05 11:25 AM Re: Access Denied
danleff Offline
Carpal Tunnel

Registered: 08/30/02
Posts: 2738
Loc: Albany, NY
...and what distro are you using? What GUI, KDE or Gnome?

Top
#162189 - 05/13/05 07:19 PM Re: Access Denied
BARTICLE Offline
newbie

Registered: 03/03/05
Posts: 25
I'm using Mandrake 10.1 with KDE. I have downloaded all the updates & bug fixes.

Top
#162194 - 05/13/05 10:39 PM Re: Access Denied
martouf Offline
enthusiast

Registered: 07/09/04
Posts: 338
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 ?


Top
#162211 - 05/15/05 12:26 AM Re: Access Denied
danleff Offline
Carpal Tunnel

Registered: 08/30/02
Posts: 2738
Loc: Albany, NY
su
enter root password
chmod -c 777 /usr/share

Top
#162366 - 05/20/05 06:16 AM Re: Access Denied
BARTICLE Offline
newbie

Registered: 03/03/05
Posts: 25
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.

Top
#162392 - 05/20/05 05:07 PM Re: Access Denied
danleff Offline
Carpal Tunnel

Registered: 08/30/02
Posts: 2738
Loc: Albany, NY
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?

Top
#162398 - 05/20/05 08:14 PM Re: Access Denied
LinuxCrusader Offline
member

Registered: 01/30/04
Posts: 165
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/

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
Sony DSC-F505 Driver for Vista OS
by adminxxx
Today at 07:06 PM
squid
by yuvraj
Today at 04:48 PM
Win2k Log-on/Log-off Loop
by Annihilist
Today at 04:25 PM
Sims 2 can't read a file
by G-Girl
Today at 11:13 AM
No Sound
by kirschiee
Today at 03:00 AM
Who's Online
0 Registered (), 212 Guests and 17 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
88910 Members
24 Forums
38511 Topics
168061 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22