[NTLUG:Discuss] NFS Resolution
Michael Patrick
michael at techiesplace.com
Thu Sep 6 20:46:10 CDT 2001
On Thu, Sep 06, 2001 at 08:12:44PM -0400, Patrick Parks wrote:
>
> One other issue I am working on, and I am hoping that someone could
> help me with is permissions. I read the how to, I have a huge
> mastering linux book, and I am still confused.
> ok, I have my windows partition which is just a partition on the
> drive, not a seperate drive. I have it mount at boot time, the mount
> point is in my home directory. The owner is root, and so is the
> group. permissions are 755. I want to be able to read and write from
> linux as myself to the windows partition. how can I change these
> permissions? I login as root, and try to change the owner and group,
> and it does not allow me to. I originally set it up through
> linuxconf and I do not see an option to set the permissions there.
> Anyone?
>
> One other thing. How would I set up a directory in like /home that
> anyone could access. Any user any group read and write? I have tried
> this and have not been successful either. Everyone has the
> permissions, but when someone puts a file in the directory, no one
> can access it. The permissions have to be changed for every file
> that is put in the directory the everyone creates. Is there a way
> around this? TIA
Hi Patrick.
Unix permissions work like this:
1 - execute (or traverse if a directory)
2 - write
4 - read
further.. the groupings are
owner group others
so 755 = rwxr-xr-x
Read/Write/Execute for owner
Read and Execute for owner's groups and Others
so for someone random (i.e. everyone) to get into a directory, it would need at least
d--------x
now... they won't be able to list files.. that needs r-x
The utility to change permissions is chmod
chmod -R 755 michael.users testdir
means that I want to assign rwxr-xr-x to testdir AND everything below it (-R is recurse)
Michael
More information about the Discuss
mailing list