LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2010, 09:50 AM   #1
Rameses
LQ Newbie
 
Registered: Jul 2010
Posts: 13

Rep: Reputation: 0
File permissions


Newbie question:
Let's say we have a folder called: /var/admin/ and only admin has access to it. If we have another folder called /var/admin/user/ how can we give access to a specific user to the "user" folder only?
 
Old 07-30-2010, 10:03 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Can you please explain bit more?

what permission set on /var/admin and what permission you want to set on /var/admin/user directory ?
 
Old 07-30-2010, 10:08 AM   #3
Rameses
LQ Newbie
 
Registered: Jul 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Let's say we have two users: admin and user
We want "admin" to have (rwx) access to /var/admin/ directory and "user" to have (rwx) access to /var/admin/user/ directory only. So the "user" cannot access /var/admin/ folder.
 
Old 07-30-2010, 10:21 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by Rameses View Post
Let's say we have two users: admin and user
We want "admin" to have (rwx) access to /var/admin/ directory and "user" to have (rwx) access to /var/admin/user/ directory only. So the "user" cannot access /var/admin/ folder.
You mean to say only admin user have 7 (rwx) permission on /var/admin dir. and other users has 0 (no permission) am i right? As per my view this is not possible to set full access on sub dir. without read access on parent.
 
Old 07-30-2010, 10:28 AM   #5
sethusubbiah
Member
 
Registered: Jul 2010
Posts: 36

Rep: Reputation: 2
If i didnt get it wrong. You mean to say, There are 2 folders on the same machine /path/to/admin and /path/to/admin/user. The user should have no rights on the admin folder??

I think the easiest way to restrict access to the user is by not providing him sudo access. Then you can look at this link , for more info regarding giving permissions

http://www.yolinux.com/TUTORIALS/Lin...ingGroups.html
 
  


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
changing default file permissions upon file creation ceci2 Linux - Newbie 7 10-01-2009 07:27 AM
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 08:33 AM
Windows file permissions with a Linux file server joseph_k Linux - Server 3 05-09-2008 12:54 PM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

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