LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-28-2007, 01:39 PM   #1
Darth Cupcake
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
Permissions Troubles


When I try to save to my Desktop or move anything around on it, it says permission is denied. When I try to cd to it, it says the same thing. Now, all my desktop icons have disappeared. I ran chown to me for my desktop and it says that I am the owner but it still won't work. I noticed that when I go to the Desktop properties it says Contents: unreadable. I don't know if this has anything to do with it. Any help would be greatly appreciated. Thanks.
 
Old 05-28-2007, 02:33 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Not knowing exactly where your Desktop is (usually it's located in your $HOME directory) or what's in it, I suggest you do this:
Code:
$ cd $HOME
$ chmod 700 Desktop
$ cd Desktop
$ chmod 644 file1
replace file1 for whatever is a filename
This will set the permissions so you, the owner, will be able to cd (change directory) into Desktop directory.
The permissions on the file(s) will be set to write/read for the owner, read for group members, and read for all other. If you don't like 644 for permissions you can make it whatever you like.

http://www.linuxhelp.net/newbies/#perms
 
Old 05-28-2007, 02:33 PM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Could you post the output of:
Code:
ls -ld ~/Desktop
 
Old 05-28-2007, 04:38 PM   #4
Darth Cupcake
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by zhangmaike
Could you post the output of:
Code:
ls -ld ~/Desktop
d--------- 3 brandon root 4096 2007-05-25 19:08 /home/brandon/Desktop
 
Old 05-28-2007, 04:41 PM   #5
Darth Cupcake
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bsdunix
Not knowing exactly where your Desktop is (usually it's located in your $HOME directory) or what's in it, I suggest you do this:
Code:
$ cd $HOME
$ chmod 700 Desktop
$ cd Desktop
$ chmod 644 file1
replace file1 for whatever is a filename
This will set the permissions so you, the owner, will be able to cd (change directory) into Desktop directory.
The permissions on the file(s) will be set to write/read for the owner, read for group members, and read for all other. If you don't like 644 for permissions you can make it whatever you like.

http://www.linuxhelp.net/newbies/#perms
That did it! Thanks a lot!
 
Old 05-28-2007, 06:48 PM   #6
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Quote:
Originally Posted by Darth Cupcake
d--------- 3 brandon root 4096 2007-05-25 19:08 /home/brandon/Desktop
You've also managed to change group to root. There should be a group brandon which was created during install. You can access the way its been changed but both owner and group should be set to brandon. My advice, learn Linux with the GUI. Make all changes with the GUI and start to learn the command line by viewing and listing. Save command line changes for the future. Don't ever use a command line statement offered on a forum until you are comfortable that you understand what it does.
 
  


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
dark side convert with permissions troubles... Jim Yadon Linux - Newbie 5 08-21-2006 09:12 PM
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 03:39 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
Troubles with Nvidia permissions crud Slackware 4 05-26-2005 03:16 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:57 AM.

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
Open Source Consulting | Domain Registration