LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-30-2005, 09:17 PM   #1
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Rep: Reputation: 30
chmod help so regular users can mount cds


I have a couple drives: /dev/hda1,hda2, /dev/sdb1, /dev/hdc, /dev/hdd that I want to be able to access and mount as a normal user. The hdas are always in devices:/ in konqueror but the others disappear after I mount them, even though I have a corresponding folder in /mnt. How can I fix that? Also how can I use chmod or something to change the permissions so a regular user can mount it and access the drives?
 
Old 01-30-2005, 10:02 PM   #2
kopikat
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Slack 10
Posts: 45

Rep: Reputation: 15
Open /etc/fstab with you favorite text editor and in the lines pertaining to your cdrom (the one that says something like /dev/hdc /mnt/cdrom), in the fourth column replace "owner" for "user" (without commas). That should allow any user to mount and umount your cdrom device.
 
Old 01-30-2005, 10:04 PM   #3
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
Quote:
Open /etc/fstab with you favorite text editor and in the lines pertaining to your cdrom (the one that says something like /dev/hdc /mnt/cdrom), in the fourth column replace "owner" for "user" (without commas). That should allow any user to mount and umount your cdrom device.
so for the ones containing defaults there should I just use auto (or noauto) with user and ro, so like this:
for flash drive:
auto,user,rw
cdrom:
noauto,user,ro
that seems to work.
Thanks.
 
Old 01-31-2005, 01:02 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
THough it may not make a difference for you, I always prefer to replace "user" with "users". This way if user A mounts the CD and leaves it mounted, user B can umount it.
 
Old 01-31-2005, 02:04 PM   #5
kopikat
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Slack 10
Posts: 45

Rep: Reputation: 15
Quote:
Originally posted by shilo
THough it may not make a difference for you, I always prefer to replace "user" with "users". This way if user A mounts the CD and leaves it mounted, user B can umount it.
Thats probably a good idea
 
  


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
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 01:59 AM
Normal users reading regular NTFS mount. MagusYilie Linux - Newbie 2 04-21-2005 12:07 AM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 06:36 PM
enable regular users to write a mount brainlesspinkey Linux - Newbie 1 11-15-2004 12:52 AM
regular users using halt TimmyP Debian 4 11-08-2004 04:06 AM

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

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