LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2004, 05:43 AM   #1
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Rep: Reputation: 15
/etc/fstab and permissions


/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext2 defaults 1 1
/dev/hda1 /windows vfat defaults,users 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

This is my /etc/fstab file.

It works fine for mounting "windows" when logged in as root.

When I log in a a regular user, I have to elevate to root to change permissions first, and then it lets me enter "windows" as a regular user.

However, the user entrance permissions don't stick. After I logout and then in again, I need to change permissions as root again to get user access.

Why don't the permission changes stick? How do I make them stick? I'm changing permissions with KDE.

Thanks.
 
Old 03-23-2004, 05:59 AM   #2
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
Re: /etc/fstab and permissions

Quote:
Originally posted by jeff1500

/dev/hda1 /windows vfat defaults,users 1 0
Try these:
/dev/hda1 /windows vfat user,rw 1 0
or
/dev/hda1 /windows vfat umask=000,rw 1 0

First one allows a normal user to mount /umount the partition. Seconds allows everyone to read/write/access that fat partition. U can use both :
/dev/hda1 /windows vfat user,umask=000,rw 1 0

Also before u mount it to the /windows change permissions of /windows so normal users will be able to read/write/access it (u will need to do this only once)

Last edited by muah; 03-23-2004 at 06:22 AM.
 
Old 03-23-2004, 12:56 PM   #3
markpmc
LQ Newbie
 
Registered: Mar 2004
Location: Alabama
Distribution: slack since 96
Posts: 10

Rep: Reputation: 0
Try this

The guys at http://www.userlocal.com (slackware news site) just posted a how to. It covers both the quick and right way to set it up.

http://www.userlocal.com/tips/fatmounting.php

markpmc
 
Old 03-23-2004, 03:50 PM   #4
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
Good advice, I'll give it a try.
 
Old 03-24-2004, 08:10 PM   #5
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
I think I've got it working like this:

/dev/hda1 /windows vfat users,umask=000,rw 1 0

with just user, it said only root could unmount

and without umask=000, I think I lost permissions after rebooting

Then again I was just stabbing at it, so who knows just what I was doing.

I'll try the settings from the article one day when it's quiet.




But hey, look at this, I'm getting to be a consumer level Linux user.
 
Old 03-27-2004, 01:21 PM   #6
wlawee
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
fstab

I managed to get the fstabs and permissions to work. However, I can read/write in the root folder of my vfat mount, but I can only read in subfolders.

How do I enable read write in the subfolders of my vfat mount?

my fstab line for mount:

Code:
/dev/hdb1               /mnt/windows     vfat            defaults,rw,gid=408,uid=100,umask=000   0 0
Thanks...
 
Old 03-27-2004, 01:42 PM   #7
terosaur
Member
 
Registered: Mar 2003
Distribution: Slackware 12.0
Posts: 79

Rep: Reputation: 15
I believe you have to "chmod" as root each directory you want to give read/write access. If you want to give it to ALL subdirectories, do a "chmod -R" for recursive.
 
Old 03-27-2004, 08:15 PM   #8
wlawee
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
fstab

Nice. It works.

Thank you!
 
  


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, fat32, permissions. isaac_e Slackware 7 02-01-2010 09:13 PM
fstab permissions sall Linux - General 3 08-07-2005 12:57 PM
fstab... user needs permissions killahsmurf Slackware 9 03-26-2005 02:00 PM
fstab ntfs and permissions zorlock Linux - Newbie 1 11-17-2004 04:06 AM
Permissions and fstab help The SIN Raven Slackware 18 11-21-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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