Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-28-2007, 01:39 PM
|
#1
|
Member
Registered: Nov 2006
Distribution: Slackware
Posts: 53
Rep:
|
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.
|
|
|
05-28-2007, 02:33 PM
|
#2
|
Senior Member
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
|
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
|
|
|
05-28-2007, 02:33 PM
|
#3
|
Member
Registered: Oct 2004
Distribution: Slackware
Posts: 376
Rep:
|
Could you post the output of:
|
|
|
05-28-2007, 04:38 PM
|
#4
|
Member
Registered: Nov 2006
Distribution: Slackware
Posts: 53
Original Poster
Rep:
|
Quote:
Originally Posted by zhangmaike
Could you post the output of:
|
d--------- 3 brandon root 4096 2007-05-25 19:08 /home/brandon/Desktop
|
|
|
05-28-2007, 04:41 PM
|
#5
|
Member
Registered: Nov 2006
Distribution: Slackware
Posts: 53
Original Poster
Rep:
|
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!
|
|
|
05-28-2007, 06:48 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|