* [gentoo-user] About permissions, etc.
@ 2007-01-21 16:34 Charles Trois
2007-01-21 20:17 ` Norberto Bensa
0 siblings, 1 reply; 2+ messages in thread
From: Charles Trois @ 2007-01-21 16:34 UTC (permalink / raw
To: gentoo-user
Hello!
I am a bit confused about some matters related to permissions.
Here is a part of my fstab file:
Sirrah ~ # cat /etc/fstab
...
/dev/hda9 /mnt/giga hfs defaults,umask=0 0 0
/dev/hda10 /mnt/Sigma hfsplus defaults 0 0
/dev/hda11 /mnt/SigmaX hfsplus defaults 0 0
...
and here are the contents of /mnt:
Sirrah ~ # ls -l /mnt
total 8
drwxr-xr-x 1 root root 28 Dec 21 17:00 Sigma
drwxrwxr-t 1 root cdrw 38 Jan 21 09:52 SigmaX
drwx------ 2 root root 4096 Aug 11 01:49 cdrom
drwx------ 2 root root 4096 Aug 11 01:49 floppy
drwxrwxrwx 1 root root 40 Dec 21 16:00 giga
I want to suppress the write permissions on Sigma and SigmaX. So I did
Sirrah ~ # chmod 555 /mnt/Sigma
That worked all right, and I went on with
Sirrah ~ # chmod 555 /mnt/SigmaX
chmod: changing permissions of `/mnt/SigmaX': Read-only file system
The error here is surprising, as SigmaX is mounted rw:
Sirrah ~ # mount
...
/dev/hda11 on /mnt/SigmaX type hfsplus (rw)
...
I tried the step of remounting it rw: the error disappeared, but chmod
produced no result.
SigmaX, strangely, belongs to the cdrw group, and I wondered if that
could be the cause of the trouble, so I tried to change it to root; but
the answer was again: Read-only file system.
Finally, I wondered if SigmaX might have the "i" attribute, so I tried:
Sirrah ~ # lsattr /mnt
------------- /mnt/cdrom
------------- /mnt/floppy
lsattr: Inappropriate ioctl for device While reading flags on /mnt/giga
------------- /mnt/Sigma
------------- /mnt/SigmaX
It shows no attributes, but there is this error about giga: it is
perhaps of no consequence, but it should not be there!
I'd be grateful for any hints that could help me get out of this mess.
Charles
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] About permissions, etc.
2007-01-21 16:34 [gentoo-user] About permissions, etc Charles Trois
@ 2007-01-21 20:17 ` Norberto Bensa
0 siblings, 0 replies; 2+ messages in thread
From: Norberto Bensa @ 2007-01-21 20:17 UTC (permalink / raw
To: gentoo-user; +Cc: Charles Trois
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
Charles Trois wrote:
> Hello!
>
> I am a bit confused about some matters related to permissions.
> Here is a part of my fstab file:
>
> Sirrah ~ # cat /etc/fstab
> ...
> /dev/hda9 /mnt/giga hfs defaults,umask=0 0 0
> /dev/hda10 /mnt/Sigma hfsplus defaults 0 0
> /dev/hda11 /mnt/SigmaX hfsplus defaults 0 0
Since you seem to be running on a Mac, I'd suggest to ask on gentoo-ppc-user.
Anyway, I don't know hfs{,plus} but I guess you'll have to play around with
(from man mount):
Mount options for hfs
.
.
.
dir_umask=n, file_umask=n, umask=n
Set the umask used for all directories, all regular files, or
all files and directories. Defaults to the umask of the
current process.
Best regards,
Norberto
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-21 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-21 16:34 [gentoo-user] About permissions, etc Charles Trois
2007-01-21 20:17 ` Norberto Bensa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox