LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-21-2005, 01:15 AM   #1
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Rep: Reputation: 15
slave hdd


currently I have a windows/linux setup with removable hard drives. However i have a fixed slave in my case that is formatted in fat32 so both windows and linux can access it. The only problem i have is that linux needs me to be in root to add, delete or change any of the files. Is there a way to let a normal user mount a drive and have full control over it?

I am running the newest kernel and fedora core 3.

I mount the drive with this command in root if any of you would like to know
mount -t vfat /dev/hdb1 /media/disk1

Last edited by canyon289; 02-21-2005 at 01:17 AM.
 
Old 02-21-2005, 02:07 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
what are the permissions that are set for /media/disk1? When your in /media, so an ls -l
 
Old 02-21-2005, 05:02 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Code:
/dev/hda2  /windata  /vfat  auto,uid=1000,gid=1000,umask=007  0  0
You currently mount manually. If you want to mount it automatically, you can add the above line to your /etc/fstab. /dev/hda2/ might need modification to reflect your system.
UID defines the owner (should be you), GID the group and umask the rights for owner, group and others.
The above allows owner with UID=1000 and members of the group with GID=1000 access to the FAT32 partition while other users don't have any rights.

You have to find the values for UID and GID on you system.

Last edited by Wim Sturkenboom; 02-21-2005 at 11:41 PM.
 
Old 02-21-2005, 11:27 AM   #4
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
Permissions are as follows
Read -all, write-root, execute - all. When I try to select write in the GUI for anything but root it won't put the check by it.

Where do I find the UID and GID?

Thanks for the automount tip.
 
Old 02-21-2005, 11:30 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
In a terminal, type id. You will get the info for the current user:
Code:
uid=1000(wim) gid=1000(wim) groups=.....,1000(wim)
Fedora probably has a graphical tool to maintain user and groups. You can easily add a group for this functionality (if you want) and add this group to selected users.

Last edited by Wim Sturkenboom; 02-21-2005 at 11:42 PM.
 
Old 02-23-2005, 06:15 PM   #6
canyon289
Member
 
Registered: Sep 2004
Posts: 125

Original Poster
Rep: Reputation: 15
I just have to install the correct rpm right?
 
Old 02-24-2005, 02:46 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
I guess it's there by default. I know for RH8 it's in the gnome menu somewhere. Probably under kde as well. I don't know for the other window managers. but I don't think that they have it.
Just browse your menus.
 
  


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
CentOS can't detect my slave HDD twysm cAos 1 05-05-2005 06:50 PM
Master/Slave HDD Question eklitzke Linux - Hardware 4 04-01-2005 03:19 AM
Linux HDD as slave? roAder Slackware 1 06-28-2004 07:27 AM
slave hdd tomamodi Linux - General 11 05-21-2004 09:30 AM
Mandrake 9.0 installation on slave hdd DMBand8700 Linux - Newbie 9 01-21-2003 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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