Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-27-2003, 10:30 AM
|
#1
|
|
Member
Registered: Nov 2003
Location: Argentina
Distribution: RedHat 9
Posts: 54
Rep:
|
fstab and windows partitions
I have 2 windows partitions. I have specified this fstab file
Code:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda8 swap swap defaults 0 0
/dev/hda1 /mnt/winc vfat ro,user 0 0
/dev/hda5 /mnt/wind vfat rw,user,gid=500,setgid=500,mode=764 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
I ceated the group with gid 500 and I have my user in the group.
If I check the permissions from nautilus I see that /mnt/wind is in tat group and not in the root group. The owner still is root, and I don't want to change that.
How do I change the mode so my user (not root) can read and write all files inside that filesystem?
I want
owner: rwx
group:rw-
other:r--
Any other suggestion about this setup is welcome
|
|
|
|
12-27-2003, 10:57 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
change the line to read..........
Code:
/dev/hda5 /mnt/wind vfat rw,users,gid=500,setgid=500,mode=764 0 0
Last edited by 320mb; 12-27-2003 at 10:58 AM.
|
|
|
|
12-27-2003, 01:34 PM
|
#3
|
|
Member
Registered: Nov 2003
Location: Argentina
Distribution: RedHat 9
Posts: 54
Original Poster
Rep:
|
Doesn't do the trick....
Here's what I have:
Code:
[fede@localhost fede]$ cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda8 swap swap defaults 0 0
/dev/hda1 /mnt/winc vfat ro,user 0 0
/dev/hda5 /mnt/wind vfat rw,users,gid=500,setgid=500,mode=764 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
[fede@localhost fede]$ ls -all /mnt/
total 40
drwxr-xr-x 7 root root 4096 Nov 6 23:14 .
drwxr-xr-x 19 root root 4096 Dec 27 16:27 ..
drwxr-xr-x 2 root root 4096 Nov 6 17:11 cdrom
drwxr-xr-x 2 root root 4096 Nov 6 17:11 cdrom1
drwxr-xr-x 2 root root 4096 Nov 6 17:11 floppy
drwxr-xr-x 15 root root 4096 Dec 31 1969 winc
drwxr-xr-x 10 root windaccess 16384 Dec 31 1969 wind
[fede@localhost fede]$
|
|
|
|
12-28-2003, 05:55 PM
|
#4
|
|
Member
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404
Rep:
|
Quote:
|
/dev/hda1 /mnt/winc vfat ro,user 0 0
|
You could try this :
Code:
/dev/hda1 /mnt/winc vfat umask=016,gid=500 0 0
I believe this should do what you need it to.
I may be wrong on the numbers so try:
man umask
Let me know if it works, I am not on my Linux box, so I couldn't be absolutely sure about the numbers. 
|
|
|
|
12-29-2003, 01:34 AM
|
#5
|
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Rep:
|
umask kinda works backwards, (eg: 016 is the same as 761)
Try JayCnrs option.
|
|
|
|
12-29-2003, 05:47 AM
|
#6
|
|
Member
Registered: Nov 2003
Location: Argentina
Distribution: RedHat 9
Posts: 54
Original Poster
Rep:
|
As soon as I get home, I will.
|
|
|
|
12-29-2003, 06:09 PM
|
#7
|
|
Member
Registered: Nov 2003
Location: Argentina
Distribution: RedHat 9
Posts: 54
Original Poster
Rep:
|
Well, after 10 reboots, I got it working. In the process I learned it does not make sense to remove the execute permission, doing it makes it impossible to do an ls or a cd and nautilus goes crazy and can list the contents prperly.
Here's the fin al version
/dev/hda5 /mnt/wind vfat rw,user,suid,umask=002,gid=500 0 0
and the result
drwxrwxr-x 10 root windaccess 16384 Dec 31 1969 wind
As my user is in the group, I can r and w it. Other users can read it. nice. Thanks.
EDIT: i just noticed, why does it have that timestamp????? Looks weird.....
Last edited by fedetxf; 12-29-2003 at 06:11 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:53 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.
|
Latest Threads
LQ News
|
|