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 04-25-2006, 09:55 PM   #1
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
mounting options & groups on files


hi!
i have two cdroms attach on the second IDE which seems to be recognized as hdc & hdd, when i login as root, i cannot mount /dev/cdrom /mnt/cdrom, as from what i've read this is probably because i have no link on /dev/cdrom to /dev/hdd or /dev/hdc, i havent tried that but i tried last night is

mount /dev/hdd /mnt/cdrom

i was able to mount it that way as root, but as a normal user it says mount: only root can do that, i tried inserting this on /etc/fstab

/dev/hdd /mnt/cdrom [copied other options from /dev/cdrom, and i also put user on it, like : ro, user....]

i reboot then tried to mount again as normal user the /dev/hdd but still it says mount: only root can do that...


what seems to be the problem sir/mam?


also....

on ls command...on the owner & group properties of the file....can i use chgrp to change the group of a file to many groups? i mean is there something like...chgrp group1 group2 file...

thank you so much =)
 
Old 04-26-2006, 02:46 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Adding option "user" to fstab should be sufficient to allow a normal user to do the mount:
Code:
/dev/hdd  /mnt/cdrom auto noauto,user,ro 0 0
A file can only belong to one group.
 
Old 04-26-2006, 10:57 AM   #3
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
FYI, I believe "user" let the user that mounted the device access it while "users" lets all users access the device.

Looking the man page for chgrp, I don't think you can do that.

dennisk
 
Old 04-26-2006, 11:12 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
users is about unmounting; from `man mount`:
Quote:
Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount, then use users instead of user in the fstab line.
 
Old 04-26-2006, 09:15 PM   #5
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
hi!
thanks for all your post, another question, if i add /dev/hdd on fstab, should i comment out the entry for /dev/cdrom? or it should i leave it as is, and it wouldnt cause any problems? also does slackware works with "softtouch"...dont know but it's just the device connected when you avail a dsl connection here, and it is attach to your lan card, on xp, when i boot it automatically connects to the net, don't know if this also works on slackware, if i ask the isp provider what things should i first look at so that i may know if their dsl would work for slackware? thank you so much again sir/mam...
 
Old 04-26-2006, 10:45 PM   #6
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
Thanks for the correction, uselpa!

Dennisk
 
Old 04-27-2006, 08:29 PM   #7
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
hi!
mount is working fine last night he9x, i've added another line for /dev/hdd, ive found out that /dev/cdrom is pointing to /dev/hdc, so i made another folder for /dev/hdd, and added another line into fstab, another thing, when using xterm, and when i place a export PS1=\u@\h \$\w at .bash_profile, and when i logged in i get a message like /dev/pts/0 operation not allowed....is this a major error?
 
  


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
Adding more groups to files djchris Linux - Security 1 07-27-2005 10:36 AM
users & groups evilDOTnet Fedora 2 06-03-2005 05:17 PM
Groups & Users Obie Linux - Security 3 08-16-2004 04:30 PM
Export Users & Groups BuRnInICE Linux - Newbie 3 05-25-2004 12:03 PM
Keeping user groups from files untwisted Linux - Security 2 03-15-2004 05:59 PM

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

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