[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Jun 30 16:20:30 2004 -->
- <!--x-from-r13: quhefg ng xraarfnj.rqh (Rbj Vhefg) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Permission hell question -->
- <li><em>date</em>: Wed Jun 30 16:20:30 2004</li>
- <li><em>from</em>: dhurst at kennesaw.edu (Dow Hurst)</li>
- <li><em>in-reply-to</em>: <<a href="msg00689.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00688.html">[email protected]</a>> <<a href="msg00689.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Permission hell question</li>
Geoffrey wrote:
> Stephan Uphoff wrote:
>
>> The permissions of the covered mount point usually only come into play
>> when accessing ".." from the root of the mounted fs.
>>
>> This is true for Unix and BSD ... but I have never looked at this part
>> of the Linux sources.
>>
>> As a normal user try to
>> cd /mnt/memstick #OK
>> pwd #Fails unless cached by shell
>> ls .. #Should fail
>>
>> with /mnt/memstick permission set to 700 and user root.
>
>
> I don't agree, note the following, all done as a normal user:
>
> /home/esoteric> cd /mnt/memstick
> ksh: cd: /mnt/memstick - Permission denied
>
> rhws/home/esoteric> ls -l /mnt/memstick
> ls: /mnt/memstick: Permission denied
>
> rhws/home/esoteric> ls -ld /mnt/memstick
> drwx------ 2 root root 4096 May 12 13:59 /mnt/memstick
>
> rhws/home/esoteric> cd /mnt/memstick
> ksh: cd: /mnt/memstick - Permission denied
>
> rhws/home/esoteric> mount /mnt/memstick
>
> rhws/home/esoteric> cd /mnt/memstick
>
> rhws/mnt/memstick> pwd
> /mnt/memstick
>
> rhws/mnt/memstick> ls ..
> cdrom floppy jump memstick
>
> So, I don't believe your point above is valid.
>
>> It is not really necessary to have matching permissions - but the
>> wrong set
>> of permissions can cause interesting problems in a production
>> environment.
>
>
> If the mount options are correct, the permissions on the mount point do
> not matter. I set the perms on /mnt/memstick to 000 as root:
>
> d--------- 2 root root 4096 May 12 13:59 /mnt/memstick
>
> I can still mount the partition as a normal user. When I do, the perms
> are:
>
> drwxr-xr-x 3 esoteric users 16384 Dec 31 1969 /mnt/memstick
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428 *
Systems Support Specialist Fax: 770-423-6744 *
1000 Chastain Rd. Bldg. 12 *
Chemistry Department SC428 Email: dhurst at kennesaw.edu *
Kennesaw State University Dow.Hurst at mindspring.com *
Kennesaw, GA 30144 *
************************************************************
This message (including any attachments) contains *
confidential information intended for a specific individual*
and purpose, and is protected by law. If you are not the *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it, *
is strictly prohibited. *
************************************************************
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00688" href="msg00688.html">[ale] Permission hell question</a></strong>
<ul><li><em>From:</em> ups at tree.com (Stephan Uphoff)</li></ul></li>
<li><strong><a name="00689" href="msg00689.html">[ale] Permission hell question</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00693.html">[ale] Permission hell question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00695.html">[ale] Permission hell question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00695.html">[ale] Permission hell question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00698.html">[ale] Permission hell question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00694"><strong>Date</strong></a></li>
<li><a href="threads.html#00694"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>