LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help with permissions (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-permissions-101446/)

hbbtstar 10-07-2003 09:18 PM

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.

MasterC 10-08-2003 04:00 AM

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

hbbtstar 10-08-2003 03:37 PM

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.

natedawg_38929 10-13-2003 05:45 AM

you should've just used 'chmod 666' and not 'chmod 0666'

dalek 10-13-2003 06:02 AM

That's better
 
Wondered where that '0' came from. That was :confused: 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

:D :D :D


All times are GMT -5. The time now is 01:19 PM.