LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-27-2012, 01:45 PM   #1
DavidLee1A
Member
 
Registered: Dec 2012
Distribution: Debian Wheezy amd64
Posts: 123
Blog Entries: 12

Rep: Reputation: 5
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#
 
Old 12-27-2012, 01:55 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by DavidLee1A View Post
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)
 
1 members found this post helpful.
Old 12-27-2012, 04:11 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question regarding noexec,nodev at /tmp mrmnemo Linux - Software 9 10-20-2010 04:06 PM
'nodev' and 'nodev' option for removable media wjs1990 Linux - Newbie 1 01-06-2010 02:58 AM
How to realize the experiment on nosuid jcky Linux - Newbie 1 09-15-2009 12:20 AM
exporting 'nodev' filesystem over nfs android_online Linux - Kernel 0 05-01-2007 10:14 PM
automounted filesystems should be mounted using nosuid ForumKid Linux - Security 2 01-09-2002 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration