vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have been playing around with permissions trying to learn things. What I'm trying to do is make on account able to view and mount my cdroms and the other not. it works till IO mount them then every one can view how should I have the permissions setup my group that will be able to view will be cdrom. do I need to change the group allowed to mount in my fstab? right now user group is allowed to mount and both accounts are in the user group. I made my group for my /mnt/cdrom and /mnt/cdrw cdrom and owner root. only one account is in the cdrom group can't access /mnt folders as the other (good). when I mount though other account can access /mnt folders? new-b |
| ||||
| In article <hEC3e.16713$TZ.902@okepread06>, Matthew Martin wrote: >I have been playing around with permissions trying to learn things. >What I'm trying to do is make on account able to view and mount my >cdroms and the other not. man mount fstab (uid perm options) Mount as user, and have it mount with permissions 700. >it works till IO mount them then every one can view how should I have >the permissions setup my group that will be able to view will be cdrom. >do I need to change the group allowed to mount in my fstab? right now >user group is allowed to mount and both accounts are in the user group. >I made my group for my /mnt/cdrom and /mnt/cdrw cdrom and owner root. Your writing is less than perfectly clear - but I think you want to look at the 'id' and 'newgrp' command. Right now, you are probably running as the primary group (the one listed in /etc/passwd for your account). If you belong to _other_ groups (set in /etc/group) then you need to use the 'newgrp' command to make them primary. [compton ~]$ whatis id newgrp id (1) - print real and effective UIDs and GIDs newgrp (1) - log in to a new group [compton ~]$ Old guy |