SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi: suid is in fstab man page. 'man 2 suid says it is type uid_t. I suppose that's an integer. The question is: what's the format for suid I should use in the fourth field in fstab? Perhaps it is the numeric user ID mentioned in the chown man page and I could even use the user name. Rather than blindly test I prefer consulting.
EDIT: from mount's man page I learn for ntfs, which is the filesystem I want to mount, the option is 'uid=value'. I want everybody can use the ntfs partition or, better, just bill (username) or root. So how many bits is value and what do they represent?
In /etc/fstab/ you can write either suid or nosuid among file-system independent options, that's all. Only for specific file systems you can user uid= or gid=. For the details see "man mount".
EDIT. I see now that you edited your post. Of course these values are the numeric ids as found in /etc/passwd.
Last edited by Didier Spaier; 12-01-2017 at 09:10 AM.
As I wrote in my edited previous post, the values to write are those found in /etc/passwd (third and fourth field). So yes uid=0 and gid=0 is for root.
Also, better use "stat <file name>" than ls for this purpose.
Using -printf, stat can also output only the user name or the user ID of the owner, see "man stat".
Last edited by Didier Spaier; 12-01-2017 at 09:50 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.