LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-18-2003, 05:56 PM   #1
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Rep: Reputation: 30
Angry Permissions and fstab help


Hi there guys.
I need a little help with mi permissions in fstab.
The thing is that for the hard drivers i have what i need, because i whant to give full permission to root and group users.
Mi problem consistes that i need to give all the permitions to the group to mi CDRW, Floppy, and DVD, so all mi goup users can read wright and exec, but i whant only root and group users to be able to doo this...
For the hard drives the umas=0007 work perfectly, and for te CDRW, Floppy, and DVD, what shoul i use???
Here is mi current fstab:

/dev/hda3 swap swap defaults 0 0
/dev/hda4 / reiserfs defaults 1 1
/dev/hda2 /boot reiserfs defaults 1 2
/dev/hda1 /mnt/fat-c vfat umask=0007,defaults 0 0
/dev/hdb1 /mnt/fat-d vfat umask=0007,defaults 0 0
/dev/sr0 /mnt/cdrom iso9660 noauto,users,rw,exec 0 0
/dev/hdd /mnt/dvd iso9660 noauto,users,ro,exec 0 0
/dev/fd0 /mnt/floppy auto noauto,users.rw,exec 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Please guys, help me with this one...
Thanks.

The SIN Raven
 
Old 10-18-2003, 06:03 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
This is a part of my /etc/fstab file:
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/dvdrom      /mnt/dvdrom      auto        noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user,rw      0   0
You mount them read-only, except the floppy. I don't know as for the CDRW.

Last edited by serz; 10-18-2003 at 06:05 PM.
 
Old 10-18-2003, 06:12 PM   #3
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks serz.
Anyone can help me, i really need to all the users group to read, write, exec, including the CDRW...
Thanks.

The SIN Raven
 
Old 10-18-2003, 06:16 PM   #4
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
Quote:
Originally posted by serz
This is a part of my /etc/fstab file:
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/dvdrom      /mnt/dvdrom      auto        noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user,rw      0   0
You mount them read-only, except the floppy. I don't know as for the CDRW.

note the option "user" in there, that means whoever mounts the volume owns the volume.
 
Old 10-18-2003, 06:48 PM   #5
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks LinFreak!.
Anyone can help me, i really need to all the users group to read, write, exec, including the CDRW...
Thanks.

The SIN Raven
 
Old 10-19-2003, 06:54 PM   #6
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Anyone please???
Thanks.

The SIN Raven
 
Old 10-19-2003, 07:06 PM   #7
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
you want everybody to be able to do everything on a device, right?

ok, i don't know what device represents cdrw, but he first thing is to make sure your fstab is similar to the ones presented here, and it seems that it is, so don't worry about /etc/fstab

change permissions on your device; do su - (enter password for root), cd into /dev, then do chmod 777 dvd cdrom fd0 sr0
 
Old 10-19-2003, 07:09 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
if the floppies you are using are DOS formatted, you can use the same options as for your /dev/hda1. I don't think you can do what you want if the floppy is ext2 formatted from fstab.

As for CDs, I'm not sure. Maybe a conbination of no-rock option and mode will do it (consult man mount for details). Only root will be able to write to it unless you set the right permissions for the programs writing to it.
 
Old 10-19-2003, 07:10 PM   #9
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
O.K., now we are talking...
What about only the root and the group beeing able to use the devices???
Itīs that possible?
Thanks for the help TheOneAndOnlySM.

The SIN Raven
 
Old 10-19-2003, 07:19 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
if the floppies you are using are DOS formatted, you can use the same options as for your /dev/hda1. I don't think you can do what you want if the floppy is ext2 formatted from fstab.

you could also try
chmod 770 /dev/fd0
 
Old 10-19-2003, 07:22 PM   #11
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
An will this will give only permition to read/write/exec to group and root?
Thanks.

The SIN Raven
 
Old 10-19-2003, 07:22 PM   #12
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
type:
man fstab
man mount
also:
man chmod
man chown

for the full info and true enlightenment!

*edit*
also try:
ls -al /dev | more
to see the permissions of all the files in your /dev folder

Last edited by LinFreak!; 10-19-2003 at 07:27 PM.
 
Old 10-27-2003, 07:51 AM   #13
The SIN Raven
Member
 
Registered: Jun 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 165

Original Poster
Rep: Reputation: 30
Hey quatsh, many thanks for the help, and all the others too...
The chmod 770, command was what i was loking for...
Also did:

chmod u+s /usr/bin/cdrecord
chmod u+s /usr/bin/mkisofs
chmod u+s /usr/bin/cdparanoia

To give permission to cdrecording tools...
Many thanks...
Slackware THE Linux...

The SIN Raven
 
Old 11-20-2003, 05:50 PM   #14
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
Quote:
Originally posted by serz
This is a part of my /etc/fstab file:
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/dvdrom      /mnt/dvdrom      auto        noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user,rw      0   0
You mount them read-only, except the floppy. I don't know as for the CDRW.
My /etc/fstab is set up the same way, and I can mount the drives successfully as my user, but i cannot browse the directory that I mount my cdroms. I get a permissions error. Only root can browse the dir. Any ideas?
 
Old 11-20-2003, 06:46 PM   #15
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
check the permissions of the actual folder ("/mnt/cdrom", "/mnt/dvdrom" etc.).
 
  


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
/etc/fstab and permissions jeff1500 Slackware 7 03-27-2004 08:15 PM

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

All times are GMT -5. The time now is 06:45 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
Open Source Consulting | Domain Registration