Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-07-2003, 10:18 PM   #1
Registered: Aug 2003
Posts: 74

Rep: Reputation: 15
need help with permissions

OK, I just copied something from my windows NTFS drive which is read-only onto my linux home directory. Now, it tells me that I can't change anything because permission denied. Not a problem, i log in as root, and chmod 0666 it so it's read and write to everyone. However, it still tells me permission denied. I thought chmod 0666 meant read and write access for the owner (namely, myself) since the digits add up to read and write (2+4=6) so I don't know what's going on here. Any suggestions would be appreciated.
Old 10-08-2003, 05:00 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68

What's "something"? It might help if we knew what you were trying to do with that "something"

Be sure to check ownership:
ls -l
And change ownership to the user you want to actually be that owner:
chown username file

And finally, read up on the man page of chmod, you don't HAVE to use the numeric representations of the permissions. If you are confused, there's the easy way out:
chmod a+rw file
Will give everyone (a+) read and write (rw) permissions.

Old 10-08-2003, 04:37 PM   #3
Registered: Aug 2003
Posts: 74

Original Poster
Rep: Reputation: 15
Well, the something is my neverwinternights folder that I'm porting to Linux from my Windows drive. And the chmod a+rw worked, thanks! I'm just a little confused as to why the numeric values didn't work, though.
Old 10-13-2003, 06:45 AM   #4
LQ Newbie
Registered: Oct 2002
Location: MS
Distribution: Slackware 9.1 XFS
Posts: 27

Rep: Reputation: 15
you should've just used 'chmod 666' and not 'chmod 0666'
Old 10-13-2003, 07:02 AM   #5
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Question That's better

Wondered where that '0' came from. That was ing that is.

If you are in x just go into file manager as root, or with root priveledges, and right click and select properties. You can make read write exec and change ownerships. I know, that's cheating, but it works.




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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 05:16 AM
Permissions jymmi Linux - Newbie 3 04-15-2005 12:43 AM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 06:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration