Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grant exec permission on dedicated users home
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Anardil
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2004
Posts: 90

PostPosted: Sat Feb 18, 2006 1:16 pm    Post subject: Grant exec permission on dedicated users home Reply with quote

Hi everybody,

I need to mount my users home-dir with the exec-option to run programs out of my homes-dir.
I have got the homes-directories on a seperate partition on my disc, so I can simply add the exec-option in my fstab when
mounting this directory.
The problem is, that this grants exec-permission to all users on the machine, which is not very great due to security issues.
I only want to grant these permission for lets say the users in the development-group or to dedicated users only and not to all users!

Can ne1 help me here?
Back to top
View user's profile Send private message
yther
Apprentice
Apprentice


Joined: 25 Oct 2002
Posts: 151
Location: Charlotte, NC (USA)

PostPosted: Sun Feb 19, 2006 6:46 pm    Post subject: Reply with quote

I'm certain this is not the best solution, but it is a simple one. Make two partitions. Mount one as /home/dev and allow exec on that one. Mount the other as /home/user or whatever, with noexec. There's no law saying you only get to have one /home drive! :) (Note that you'll still need to have an empty /home/ to contain the other two. You could also use /devhome and /userhome or whatever makes sense to you.)

Of course, what that really means is, "programs located on this drive cannot be run", not "users with their home directory on this drive cannot run programs"—if a regular user manages to put an executable somewhere that is allowed, it will run. Tighter security measures than I actually understand are needed if you want to get tough. :)
Back to top
View user's profile Send private message
Anardil
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2004
Posts: 90

PostPosted: Sun Feb 19, 2006 9:35 pm    Post subject: Reply with quote

hey thx for reply this was also my first thought but I don't like this solution either.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum