Unix Technical Forum

permissions

This is a discussion on permissions within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I have been playing around with permissions trying to learn things. What I'm trying to do is make on ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:38 AM
Matthew Martin
 
Posts: n/a
Default permissions

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:39 AM
Moe Trin
 
Posts: n/a
Default Re: permissions

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com