Can't mount my SATA drive
Ed Fletcher
ed at fletcher.ca
Mon Feb 20 21:35:43 UTC 2006
Duncan Lithgow wrote:
> Thanks for sticking with me,
>
> So, one thing at a time here is the result of
> duncan at ubuntu:/media$ ls -l
>
> [...]
> drwxrws--- 3 root users 4096 2006-02-20 20:32 storage
>
> Doesn't that mean that anyone in the group:users has read/write/execute
> permission? And that anything made in there will take the same
> permissions?
>
> Thanks for the link - I learnt what set guid means now.
>
Well, that looks OK. Group users has read/write permission. And they
can execute, but it will use the permissions of the files owner. Bad
idea when owner of dir is root, I suspect.
So the only thing I'm not sure about is the sticky bit for group users.
The chmod man page says that linux ignores sticky bits on files and
also that for directories, the sticky bit is commmmonly found on ones
that are world writable (like /tmp), which yours isn't. I just checked
my root dir and there are no sticky bits anywhere. Not even on /tmp.
I would get rid of the sticky bit and just go with drwxrwx--- for now.
Which probably won't solve the main problem. How about changing the
directories owner to your user id. 'sudo chown USER storage'
Then see if you can read/write and if your second user can also read write.
One last thing, what are the permissions of the directory that storage
is in? Permissions kind of flow downhill. A more restrictive
permission on a parent directory affects all the directories below it.
For info, my /media is set to drwxr-xr-x. If yours is the same, you may
have to chmod it to drwxrwxr-x for those using group permissions to write.
Ed
--
Ed Fletcher
ed at fletcher.ca
You live and learn. At any rate, you live.
- Douglas Adams
More information about the ubuntu-users
mailing list