|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dir permissions
Hi All,
I have a script which will be run by another user say user 2 which will create a new dir say dir 4 in my work place and copy certains files from his dir. /t1/t2/t3/dir4 I want to allow the user to create the dir dir4 and copy the files,but bring the control back to my name say user 1 after it is copied. No one else should be able to do any action in the dir right after the copy is finished. How to do this?What folder permissions should i set? |
| Sponsored Links | |
|
|
|
#2
|
|||
|
|||
|
Giving someone permission to create directories in your workspace would give them access to delete files in your workspace too. I'd create a directory inside your workspace to give him access to instead, with 2770 permissions, belonging to a group that only you and this user belong to. You will both have access to create and delete files in this directory but he won't have write access to the rest of your workspace, and everything created in it will belong to the same group as the directory because it's set g+s.
Make sure he sets his umask 0007 in order to make files and directories he creates group-writable. |
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
actually this can be avoided with the sticky bit assuming the individual files in the sub directory are not writable by group or other permissions.
|
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| permissions on ftp... | aneuryzma | UNIX for Dummies Questions & Answers | 1 | 09-03-2009 04:42 AM |
| To give the "unzip" permissions & "create" file permissions | Mike1234 | HP-UX | 3 | 03-02-2008 04:34 PM |
| no permissions | DANNYC | Forum Support Area for Unregistered Users & Account Problems | 1 | 02-02-2005 06:14 PM |
| Permissions on /bin | josramon | UNIX for Advanced & Expert Users | 7 | 04-02-2003 10:50 AM |
| permissions | mma_buc_98 | UNIX for Dummies Questions & Answers | 1 | 08-13-2002 05:15 PM |
|
|