Joe Kisela on 18 Aug 2010 15:56:32 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] YAFSD

  • From: Joe Kisela <jkisela@gmail.com>
  • To: plug@lists.phillylinux.org
  • Subject: [PLUG] YAFSD
  • Date: Wed, 18 Aug 2010 18:56:27 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=CYPu5B4mLNnzpOfyteIgwfOns4VSDjDYxaiTCaFvtTY=; b=B5R5ClScRHGGAyCJmbCWmfuUDaa+ndsZXjZw47hIkB/gx0AxAcyxxStqIXoM9GrJZz KvhEdRqbAPVyE/Y/UVr3BlBBjFmptbI6o9hoDzR+fRWOJ2x5gMPcqEVyUlgihhuZwHAA J3Rpt9X5FQzi/A75uLpGtJOza0pGQvrz4ysVA=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

Jeremy,
----
s1> ls -ld /tmp
drwxrwxrwt   4 root sys      797 Aug 18 18:25 /tmp
s1> ls -ld /tmp/target
lrwxrwxrwx   1 user other      8 Aug 18 18:25 /tmp/target -> /etc
s1> ls -ld /etc
drwxr-xr-x   2 root sysadmin   2 Aug 18 18:26 /etc
s1> mount /dev/sdX /tmp/target
s1>
s1>
s1> ls -la /etc/passwd
/etc/passwd: No such file or directory
-----

that wouldn't work for multiple reasons.  You would need permissions to overwrite /etc, and PAM modules in general don't follow symlinks, for obvious reasons.  There really is nothing to worry about making a directory in /tmp for quick mounts and unmounts.  Heck, thats where I put all my NFS mounts.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug