• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Assigning Rights to directories in UNIX

I need to give a particular user access to delete files in a certain directory, one owned by root - how can I do this?

I am familiar with NetWare security where you can create a group that has certain access to a directory/directories and you then put users in the group(s) you want.  A user can belong to MANY groups.  If you can explain the UNIX security in relationship to how it works in NetWare feel free!
0
lphillips120898
Asked:
lphillips120898
  • 2
1 Solution
 
n0thingCommented:
1- Create a new group in /etc/group
2- Change the directory permission to 775
3- Change the group ownership of that directory
to the newgroup by using the chgrp command.
4- Create the new user and assign him to the
group you just created in /etc/group.

Now any users belonging to that group could remove files from that directory.

0
 
lphillips120898Author Commented:
How many groups can a user belong to?
0
 
n0thingCommented:
Depending on the OS. He could belong to as much as 15. You'll just need to separate the group ID by
a comma in the /etc/passwd file.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now