LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-07-2003, 09:18 PM   #1
hbbtstar
Member
 
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, 04:00 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hi

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.

Cool
 
Old 10-08-2003, 03:37 PM   #3
hbbtstar
Member
 
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, 05:45 AM   #4
natedawg_38929
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, 06:02 AM   #5
dalek
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.

Later

 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 PM.

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