Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2006, 10:55 PM
|
#1
|
Member
Registered: Jun 2005
Distribution: Slackware
Posts: 68
Rep:
|
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 =)
|
|
|
04-26-2006, 03:46 AM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
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.
|
|
|
04-26-2006, 11:57 AM
|
#3
|
Member
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279
Rep:
|
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
|
|
|
04-26-2006, 12:12 PM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
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.
|
|
|
|
04-26-2006, 10:15 PM
|
#5
|
Member
Registered: Jun 2005
Distribution: Slackware
Posts: 68
Original Poster
Rep:
|
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...
|
|
|
04-26-2006, 11:45 PM
|
#6
|
Member
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279
Rep:
|
Thanks for the correction, uselpa!
Dennisk
|
|
|
04-27-2006, 09:29 PM
|
#7
|
Member
Registered: Jun 2005
Distribution: Slackware
Posts: 68
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 08:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|