LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2006, 06:56 PM   #1
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Rep: Reputation: 15
write access to partition "datahda7fat32" as user


hi ,

somebody knows how to give permissions to particular users

to my "datahda7fat32" Partition ?

Slackware Setup set up the "datahda7fat32" partition for me
(root dicrectory /) i can't see any mount points for it, in /dev or /mnt

how do i change the groups having rw access to the directory (partition) "datahda7fat32" ?
how do i add groups to the /etc/groups file ?
does "chgrp" (don't want to give access to all disks) work for partitions that are not listed in /dev or /mnt ? what about "chmod" ?

here i send you my fstab :

/dev/hda5........swap.....................swap........defaults.............0 0
/dev/hda6......../.............................ext2........defaults.............1 1
/dev/hda2......../winhda2fat16....vfat........defaults.............1 0
/dev/hda7......../datahda7fat32 ..vfat........defaults.............1 0
/dev/cdrom....../mnt/cdrom.........auto........auto,owner,users,ro..0 0
/dev/fd0........../mnt/floppy...........auto........noauto,owner.........0 0
devpts............./dev/pts................devpts......gid=5,mode=620.......0 0
proc................./proc...................proc........defaults.............0 0

Last edited by Michaelx; 06-22-2006 at 07:11 PM.
 
Old 06-22-2006, 07:10 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
where it says :
Code:
/dev/hda7        /datahda7fat32      vfat      defaults     1 0
you can do something like :
Code:
/dev/hda7        /datahda7fat32      vfat      user,rw,umask=000    1 0
And your regular users should be able to do stuff .. if you want to specify a user then you can add the argument "uid=XXX" where the X's are a user ID number.
 
Old 06-22-2006, 07:31 PM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Michaelx,

Linux doesn't deal with "drive partitions" like Windows does; instead of referring to a drive as "C:\" or "D:\", the drives are nothing more than folders branched off of your "/" directory.

Judging by your /etc/fstab file, the seventh partition of your hard drive (hda7) is mounted to "/datahda7fat32".

To allow groups to have read/write access issue the following command (as root, of course):
Code:
# chmod a+rwt /datahda7fat32
To add users to "/etc/groups", issue (as root) the "addgroup" command. Type, "man addgroup" for more details on the command.

What "chgrp" does is change the ownership to a group - not necessarily a particular user. Suppose there were a set of sensitive files that only the administrator(s) of a system could touch. So that entire group of administrators, as opposed to just one super user, would have complete access to that file. Remember:
chown - to change ownership to a single user
chmod - to change permissions on a file (you either have to own the file, or be root)
chgrp - to change ownership to a group, and not just a single user

Always refer to "man"pages for almost complete reference to commands and anything Unix-like: "man chown" "man chmod" "man chgrp"
 
Old 06-23-2006, 06:31 PM   #4
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
indienick

yes, hda7 is mounted to /datahda7fat32

1.i unmout the hda7
2.i do "chmod a+rwt /datahda7fat32"
3.i check the permissions and they are modified to "drw-rw-rwT datahda7fat32/"
3. i mount /datahda7fat32 again
4. here all the permissions fall back to drwx r-xr-x !!

why ??????
 
Old 06-23-2006, 08:11 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
just do what I told you in the /etc/fstab
 
Old 06-24-2006, 08:40 AM   #6
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
thanks DrOzz,

it works
 
  


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
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
cfdisk cannot partition hard drive because it's "write protected" Flz Linux - General 13 04-25-2006 08:01 AM
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 02:05 AM
Grip- "no write access to write encoded file" Alvis Linux - Software 4 01-06-2004 04:18 PM
Why I can only write in mounted windows partition in "su" mode Allen T Linux - Software 5 02-18-2003 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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