* Re: [gentoo-user] how to access mounted dir with non-root?
2005-08-13 22:59 [gentoo-user] how to access mounted dir with non-root? Michael Swanson
@ 2005-08-13 20:54 ` Neil Bothwick
2005-08-14 3:10 ` danielhf
2005-08-20 2:52 ` [gentoo-user] timeout opening/writing control channel /dev/initctl yance kowara
1 sibling, 1 reply; 5+ messages in thread
From: Neil Bothwick @ 2005-08-13 20:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 632 bytes --]
On Sat, 13 Aug 2005 17:59:25 -0500, Michael Swanson wrote:
> Is this technique of umask=0 safe to use on an NTFS volume? I want to
> mount an NTFS drive on my desktop so that a regular user can access it.
> Is there a similar way to mount it with only read permissions,
> seeing as writing to NTFS drives isn't usually a particularly good idea
> with Linux.
NTFS partitions are usually mounted with the ro option (read only) so it
doesn't matter what write permissions you set. But to be certain, you
could set umask=222.
--
Neil Bothwick
"Bother," said Pooh, as he pulled the alien face-hugger off.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] how to access mounted dir with non-root?
@ 2005-08-13 22:59 Michael Swanson
2005-08-13 20:54 ` Neil Bothwick
2005-08-20 2:52 ` [gentoo-user] timeout opening/writing control channel /dev/initctl yance kowara
0 siblings, 2 replies; 5+ messages in thread
From: Michael Swanson @ 2005-08-13 22:59 UTC (permalink / raw
To: gentoo-user
Is this technique of umask=0 safe to use on an NTFS volume? I want to
mount an NTFS drive on my desktop so that a regular user can access it.
Is there a similar way to mount it with only read permissions,
seeing as writing to NTFS drives isn't usually a particularly good idea
with Linux.
Thanks,
Mike Swanson
rearden@atlantisvalley.com
On Fri, 12 Aug 2005 21:45:44 +0200, Holly Bostick wrote:
>>> > Don't you mean umask=0? umask inverts the bits, so 777 gives
>>> > --------- to all files.
>>> >
>>> >
>
>>
>> I'm currently in the middle of an 'argument' with someone else about
>> this, so explain, please.
>>
>> If umask masks bits off of the 'default' permissions, then what is the
>> point of umask=000?
To give rwxrwxrwx, which is fine for a FAT filesystem, and certainly
better than ---------
>> It seems that it would leave the permissions as the
>> default, which appear to be 755 (is there a creation mask of 022
>> somewhere in the 'default' settings?
And there's the rub. Setting permissions to 755 only gives write access
to the owner, which is root when mounting at bootup. The other way of
dealing with this with FAT filesystems is to use the uid/gid options to
set yourself as the user, but that only works on a single user system.
>> The other person says that umask=000 removes all restrictions and gives
>> all permissions to everybody, but I just don't understand how this
>> could be, unless the specific file/mount point was already set that way
>> (no file creation mask, so the files are 'created' with the default
>> 777/666, or inherited the permission structure of the parent).
The mount point is irrelevant, what counts is the permissions on the
mounted filesystem, not the parent of the mount point. Once you mount
something on it, it takes on the permissions of the mounted device.
# ls -ld t
drwxr-xr-x 2 root root 6 Apr 21 13:34 t
# mount /dev/sdd1 t -o umask=0
# ls -ld t
drwxrwxrwx 7 root root 16384 Jan 1 1970 t
See, the 755 changes to the 777 specified in the mount
options. /dev/sdd1 is a FAT16 formatted flash disk.
-- Neil Bothwick "We demand rigidly defined areas of doubt and
uncertainty!"
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] how to access mounted dir with non-root?
2005-08-13 20:54 ` Neil Bothwick
@ 2005-08-14 3:10 ` danielhf
0 siblings, 0 replies; 5+ messages in thread
From: danielhf @ 2005-08-14 3:10 UTC (permalink / raw
To: gentoo-user
On Sat, Aug 13, 2005 at 09:54:22PM +0100, Neil Bothwick wrote:
> On Sat, 13 Aug 2005 17:59:25 -0500, Michael Swanson wrote:
>
> > Is this technique of umask=0 safe to use on an NTFS volume? I want to
> > mount an NTFS drive on my desktop so that a regular user can access it.
> > Is there a similar way to mount it with only read permissions,
> > seeing as writing to NTFS drives isn't usually a particularly good idea
> > with Linux.
>
> NTFS partitions are usually mounted with the ro option (read only) so it
> doesn't matter what write permissions you set. But to be certain, you
> could set umask=222.
>
>
> --
> Neil Bothwick
>
> "Bother," said Pooh, as he pulled the alien face-hugger off.
thanks again. i use "umask=022" that solved the problem perfectly.
just write down the permission you want, eg. 755, then 777 minus
755, the result is right the value for the "umask".
hope it's a useful tip for beginners like me :-)
best regards
daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] timeout opening/writing control channel /dev/initctl
2005-08-13 22:59 [gentoo-user] how to access mounted dir with non-root? Michael Swanson
2005-08-13 20:54 ` Neil Bothwick
@ 2005-08-20 2:52 ` yance kowara
2005-08-22 12:38 ` yance kowara
1 sibling, 1 reply; 5+ messages in thread
From: yance kowara @ 2005-08-20 2:52 UTC (permalink / raw
To: gentoo-user
Hi all,
I am trying to install gentoo stage 3 using kernel 2.6.12-gentoo-r6,
following the documentation.
after #umount /mnt/gentoo ... (Chapter 10.d. Rebooting the system)
#reboot
The following messages are displayed:
shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl
Any pointer on how to tackle this prob?
Thanks heaps for any pointers.
Regards,
Yance
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] timeout opening/writing control channel /dev/initctl
2005-08-20 2:52 ` [gentoo-user] timeout opening/writing control channel /dev/initctl yance kowara
@ 2005-08-22 12:38 ` yance kowara
0 siblings, 0 replies; 5+ messages in thread
From: yance kowara @ 2005-08-22 12:38 UTC (permalink / raw
To: gentoo-user
yance kowara wrote:
> Hi all,
>
> I am trying to install gentoo stage 3 using kernel 2.6.12-gentoo-r6,
> following the documentation.
>
> after #umount /mnt/gentoo ... (Chapter 10.d. Rebooting the system)
> #reboot
>
> The following messages are displayed:
> shutdown: timeout opening/writing control channel /dev/initctl
> init: timeout opening/writing control channel /dev/initctl
>
> Any pointer on how to tackle this prob?
>
> Thanks heaps for any pointers.
>
> Regards,
>
> Yance
It appears that I have to type exit twice before reboot. It is only one
"exit" in docs.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-22 12:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-13 22:59 [gentoo-user] how to access mounted dir with non-root? Michael Swanson
2005-08-13 20:54 ` Neil Bothwick
2005-08-14 3:10 ` danielhf
2005-08-20 2:52 ` [gentoo-user] timeout opening/writing control channel /dev/initctl yance kowara
2005-08-22 12:38 ` yance kowara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox