The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[Help] Give privilege to an ordinary user ibmer414 AIX 1 04-08-2008 02:56 PM
copy outgoing administrator privilege itik AIX 1 01-22-2008 12:16 PM
root privilege ahmad_one SUN Solaris 7 03-18-2006 08:50 AM
Shutdown Privilege konda UNIX for Advanced & Expert Users 2 05-20-2002 03:36 PM
Shutdown Privilege j1yant UNIX for Advanced & Expert Users 4 02-05-2002 07:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-09-2003
here2learn here2learn is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 53
Write privilege for user

Is it possible to grant write privileges to a user on a directory with out having to add the user to a group or make the user the owner of the directory?

My background is in Windows and in Windows you can grant specific privileges to a user without having to put the user in a group or making the user the owner of the object.

I'm completely new to UNIX, so I apologize if this is a stupid question.
  #2 (permalink)  
Old 11-09-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
yes you can chmod +w on your file but that makes it writeable to all other users. its better off to do it on a group basis. make the directory writeable to the owner and users of the certain group only. it makes more sense this way, instead of specifying users indivdually, which can get tedious...fast.
  #3 (permalink)  
Old 11-12-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
For the task you are trying to accomplish, you should probably used extended ACL(s).

Give some directory named ick, before adding an additional ACL:

$ ls -ld ick
-rwx------ 1 kduffin sysadmin 328 Jun 25 15:53 ick

To add the ACL for a user named keith:

$ setfacl -m u:keith:rwx,m:rwx ick

You can tell that there is an ACL by the plus sign on the listing now:

$ ls -ld ick
-rwx------+ 1 kduffin sysadmin 328 Jun 25 15:53 ick

You can see the assigned ACL(s) using getfacl

$ getfacl ick

user::rwx
user:keith:rwx #effective:rwx
group::--- #effective:---
mask:---
other:---

Hope this helps. Anytime I add extended ACL(s), I will typically add them to a script as will (setperms) so that I can quickly reset ACL(s) in the event of file or directory removal.

Cheers,

Keith

Last edited by kduffin; 11-17-2003 at 10:49 PM..
  #4 (permalink)  
Old 11-13-2003
here2learn here2learn is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 53
Thanks for the info Keith. That's exactly what I was looking for.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0