LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-12-2005, 09:54 PM   #1
thegoofeedude
Member
 
Registered: Aug 2004
Distribution: Slackware 13.37, 14.1
Posts: 75

Rep: Reputation: 17
fstab + Security


Hello,
I recently installed Slackware 10.1 and added some NTFS partitions to my fstab during the installation. I would like to make the partitions available to me when I am not signed in as root. There is only one person using this computer, so I only have a root user and a user called 'nathan' (normal account for web browsing etc).

My current fix for getting the filesystem to work is this:
Code:
/dev/hdb1       /mnt/mp3       ntfs     noauto,users,ro  1   0
My worry is that this is insecure somehow. I don't have a webserver running on this machine, but I do have whatever default services Slackware Installer thought were useful running.

I am aware that there is an option umask=**** with which you can change the permissions a filesystem is mounted with. I don't, however, understand the syntax of the umask option, nor do I know what group(s) (if any) my user 'nathan' needs to be a part of. (Something about setting a GID=***,UID=*** ?) Currently the user 'nathan' belongs to no groups except 'users'.

Is my current solution insecure? Can anyone give me tips on what the best solution is?

Thanks for reading.
 
Old 02-12-2005, 11:49 PM   #2
thegoofeedude
Member
 
Registered: Aug 2004
Distribution: Slackware 13.37, 14.1
Posts: 75

Original Poster
Rep: Reputation: 17
Well...

Turns out my 'solution' was no solution. I edited the fstab with the line I posted above, and now my user 'nathan' can mount and umount the filesystem, but still can't actually access it (?). Any insight to this would be great

Edit: After much googling, I figured it out! Here are some links I found really helpful:
http://www.lns.cornell.edu/public/CO...ls_3.html#SEC4
http://www.linuxquestions.org/questi...ticle&artid=20
http://electron.mit.edu/~gsteele/linuxfaq/


So I changed the line in my fstab to read
Code:
/dev/hdb1     /mnt/mp3      ntfs      noauto,ro,umask=0222     1  0
and it works great. Since I didn't specify 'user' or 'users', only root can mount the partition, but that's fine with me, at least now I understand the fstab better. Hopefully someone can find this post useful

Last edited by thegoofeedude; 02-13-2005 at 12:31 AM.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
[Security Questions] Last Login, how good is this feature for security breach info? t3gah Linux - Security 2 06-14-2005 01:02 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
todays requirements regarding security (not limited to linux security) markus1982 Linux - Security 8 04-25-2004 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:07 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