LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-10-2004, 02:18 PM   #1
djchris
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Rep: Reputation: 0
can't change permissions on the second hd (hdd1)


Hello Everyone

Im trying to change the permission on my second harddrive (hdd1).
It's a vfat but it wil not change. I want to make a directory on that partition full permission for anyone like the htdocs on my hda drive. so i've done this:

mount -t vfat -o dmask=777,umask=777,fmask=777 /dev/hdd1 /mnt/hd2

but didn't work.
before i've done

chmod 777 /mnt/hd2/www

the rights are
drwxr--r-- but it should be this drwxrwxrwx

ps. i'm root

thanks in advance

Chris (Newbie)
 
Old 05-10-2004, 02:41 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
can you set permissions on fat? I mean, windows doesn't support (imo) "permissions" for users or groups...at least the older ones, like 98 or ME don't. I'm not sure about XP.
 
Old 05-10-2004, 02:56 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Try using this line in your /etc/fstab file.
Code:
/dev/hdd1 /mnt/windows vfat umask=0000,iocharset=iso8859-1,codepage=850,noexec,nosuid 0 0
The no exec and nosuid options are to prevent ordinary users from copying a suid script to the drive, and executing it to become root.
Code:
/dev/hdd1 /mnt/windows vfat umask=1111,iocharset=iso8859-1,codepage=850,noexec,nosuid 0 0
.

The exec permission bit is mask out, and the sticky bit is set to prevent a user from removing another users files.

With that in mind, this may be better:

Last edited by jschiwal; 05-10-2004 at 02:57 PM.
 
Old 05-10-2004, 02:57 PM   #4
djchris
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Is there a way to convert to reiserfs or ext2 or ext2 without losing files?

Chris
 
Old 05-10-2004, 03:23 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I believe that you can convert from ext2 to ext3, but from vfat to reiserfs or ext2, I don't think so. You could move the files to a different directory and make a new file system there and then move them back.

Back to your first question, I may be better to simply create a group for the purpose of sharing files on that partitions, and setting the gid=<share_group_name>.

Then you can control which users can use this partition by adding or removing this group membership from users. In this case set the owner to root, and the umask to 1007.
 
Old 05-10-2004, 03:28 PM   #6
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
I'm not sure try this

mount -o defaults /dev/hdd1 /mnt/hd2

Then....

chmod 777 /mnt/hd2 'not chmod 777 /mnt/hd2/theothers


It would be work!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installed Darwinx86 to HDD1, now how do i boot to it? MadSkillzMan *BSD 5 07-25-2004 04:29 AM
hdd1 partition mikedeatworld Linux - Hardware 6 07-12-2004 02:01 PM
Can't change permissions LitlJay Linux - Software 9 05-21-2004 02:41 PM
Missing /dev/hdd .. .. anyway to recreate it or use hdd1 ? Zero-0-Effect Slackware 2 03-04-2004 05:16 AM
How Can I Change Permissions monkeymartin Linux - General 1 03-25-2003 01:47 PM


All times are GMT -5. The time now is 04:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration