LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Will these nosuid and nodev going to be a problem? (http://www.linuxquestions.org/questions/linux-from-scratch-13/will-these-nosuid-and-nodev-going-to-be-a-problem-4175443153/)

DavidLee1A 12-27-2012 01:45 PM

Will these nosuid and nodev going to be a problem?
 
I'm doing this common operation: http://www.linuxfromscratch.org/lfs/.../mounting.html

it says: "Ensure that this new partition is not mounted with permissions that are too restrictive (such as the nosuid or nodev options)"

will this output from mount give me a problem?

Code:

root@host:/dev# export LFS=/mnt/lfs
root@host:/dev# mkdir -pv $LFS
mkdir: created directory `/mnt/lfs'
root@host:/dev# mount -v -t ext3 /dev/sdb1 $LFS
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/883460ce-b241-49ff-8cc3-63ff903bb2b3 type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev# mount -v -t ext3 /dev/sdb1 $LFS
mount: /dev/sdb1 already mounted or /mnt/lfs busy
mount: according to mtab, /dev/sdb1 is already mounted on /mnt/lfs
root@host:/dev# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/883460ce-b241-49ff-8cc3-63ff903bb2b3 type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev#


Keith Hedger 12-27-2012 01:55 PM

Quote:

Originally Posted by DavidLee1A (Post 4857900)
I'm doing this common operation: http://www.linuxfromscratch.org/lfs/.../mounting.html

it says: "Ensure that this new partition is not mounted with permissions that are too restrictive (such as the nosuid or nodev options)"

will this output from mount give me a problem?

Code:

root@host:/dev# export LFS=/mnt/lfs
root@host:/dev# mkdir -pv $LFS
mkdir: created directory `/mnt/lfs'
root@host:/dev# mount -v -t ext3 /dev/sdb1 $LFS
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/883460ce-b241-49ff-8cc3-63ff903bb2b3 type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev# mount -v -t ext3 /dev/sdb1 $LFS
mount: /dev/sdb1 already mounted or /mnt/lfs busy
mount: according to mtab, /dev/sdb1 is already mounted on /mnt/lfs
root@host:/dev# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/883460ce-b241-49ff-8cc3-63ff903bb2b3 type ext3 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1 on /mnt/lfs type ext3 (rw)
root@host:/dev#


This is from my running LFS system:
Code:

/dev/sda3 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=4,mode=620)
shm on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/keithhedger/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,noexec)
/dev/sda8 on /media/TempStore type ext4 (rw,nosuid,nodev,noatime)
/dev/sdb3 on /media/Photos type ext4 (rw,nosuid,nodev,noatime)
/dev/sdb4 on /media/Books type ext4 (rw,nosuid,nodev,noatime)
/dev/sdb2 on /media/Music type ext4 (rw,nosuid,nodev,noatime)
/dev/sdb1 on /media/LinuxData type ext4 (rw,nosuid,nodev,noatime)
/dev/sdc1 on /media/SkyNet type ext2 (rw,nosuid,nodev,noatime)


spiky0011 12-27-2012 04:11 PM

Hi

Quote:

Ensure that this new partition is not mounted with permissions that are too restrictive
Taken from that page. You have

/dev/sdb1 on /mnt/lfs type ext3 (rw) no restrictions


All times are GMT -5. The time now is 05:31 AM.