And another stupid question: hotplugging and permissions
ttmrichter at gmail.com
Sat Jan 7 02:24:41 UTC 2006
There is little point to this, but here's my fstab:
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/Ubuntu-root / ext3 defaults,errors=remount-ro
/dev/hda1 /boot ext3 defaults 0 2
/dev/mapper/Ubuntu-swap_1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
Note the total absence of any /dev/sd* devices. That's because they're
dynamically attached and unattached. Hotplugged, even. Compare this to the
output from "mount":
/dev/mapper/Ubuntu-root on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /lib/modules/2.6.12-10-686/volatile type tmpfs (rw,mode=0755)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /media/Ubuntu Offline type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/Ubuntu Media type ext3 (rw,noexec,nosuid,nodev)
/dev/sdc1 on /media/Ubuntu Shared type ext3 (rw,noexec,nosuid,nodev)
Here we have /dev/sda1, b1 and c1 mounted. They're mounted rw, noexec,
nosuid and nodev. They get mounted that way automatically when plugged in.
The names come from the e2labels I attached to them. Everything else seems
to have been pulled out of the air. I'd like to know which spot in the air
they're being pulled out of so I can change some things (like getting rid of
noexec for starters).
On 07/01/06, William Grant <tanarrifujitsu at optusnet.com.au> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Michael Richter wrote:
> > > When I hotplug USB disks into my system, they mount noexec. (And
> > > some weird ownership issues arise as well.) How do I change these
> > > defaults?
> > What are the ownership issues that you are having?
> > They seem to always come up owned root:root and with permissions 700.
> > This means that every time I start up my computer I have to go to /media
> > and chown/chmod them to be for me with appropriate privileges.
> Sounds like a configuration issue in fstab. Like Chris Dawson said,
> please tell us the contents of your /etc/fstab.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> -----END PGP SIGNATURE-----
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users