Operating System - HP-UX
1834149 Members
2256 Online
110064 Solutions
New Discussion

queries on a line in fstab

 
SOLVED
Go to solution
Henry Chua
Super Advisor

queries on a line in fstab

I found this line in my fstab
"192.168.20.31:/users1/ndb /iwork/network/conversion/rdserver nfs rw,suid 0 0"

what does this line does?

what does suid 0 0 implies?

thank u for ur kind advises!
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: queries on a line in fstab

Hi Henry,

This an NFS entry. This means, the directory/filesystem /users1/ndb on 192.168.20.31 is to be mounted on /iwork/../rdserver directory on the local system.

nfs indicates that it is an NFS entry.

rw means it's up for read and write. But it doesn't mean anyone can read and write into it. It's according to the permissions and how it is expored on the remote system.

suid means the programs on the NFS mounte directory will run the permissions of their owners. So, if the program is owned by 'userA' and if 'userB' runs it, it will run as 'userA'.

0,0 are typically pass number and backup frequency that are ignored for NFS.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Poff
Honored Contributor

Re: queries on a line in fstab

Hi,

This line mounts a filesystem via NFS from the /users1/nds filesystem on server at IP address 192.168.20.31, mounted locally as /iwork/network/conversion/rdserver. The suid option allows setuid execution of files on that mount. The first zero is for backup frequency, and the second zero is for the pass number for when an fsck should be run at boot time.

See 'man mount_nfs' and 'mount fstab' for more information.

JP
Sridhar Bhaskarla
Honored Contributor

Re: queries on a line in fstab

Henry,

I just want to make sure I am not conveying wrong information. I didn't mean all programs on NFS mounted directory will be run as 'suid' programs if 'suid' option is specified. It's only applicable to the programs that already have 'suid' permissions. I am a fat fingered 'typo' master ;-)

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Gerhard Roets
Esteemed Contributor

Re: queries on a line in fstab

Hi,

The suid implies suid is allowed. You cn make nosuid to dissalow users from suid-ing on that filesystem. This might break some applications that rely on suid though.

Regards
Gerhard