Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Permanent file permissions within a directory Post 302716685 by Yoda on Tuesday 16th of October 2012 06:26:43 PM
Old 10-16-2012
you can use umask command to set the default file permissions
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

determine owner directory permissions from within the directory

From within a directory, how do I determine whether I have write permission for it. test -w pwd ; echo ? This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies

2. Shell Programming and Scripting

making the changes permanent in a file

Hi Friends. I have a file called install.data which has fields like : XXXXX ACVCGFFTFY UAHIUH OI CONNECTION=tape/11/ LOCATAION=08-90-89 SIZE=90 I had to change the values of some of these variables. So i did : grep "SIZE" instal.data | sed 's/*/00/' ...this is working fine on command... (4 Replies)
Discussion started by: vijaya2006
4 Replies

3. UNIX for Advanced & Expert Users

Permissions for Renaming a File vs Directory

Hello, I'm trying to fully understand UNIX permissions as applied to directories. While testing my understanding today, I came across something I found peculiar. Please consider the following directory structure: mydir (bob/bob: 0700) +myfile (root/root: 0700) +mysubdir... (2 Replies)
Discussion started by: daviejones
2 Replies

4. Shell Programming and Scripting

How can we change the permissions of a file in a directory

Hi All, I am trying to wite a Shell script which changes the permission of the files in a folder but stuck at a particular point,please help. The scenario is as follwoing: I am having a list of 10 files and a folder which has 100 files. I need to copare the list and the folder ,for... (4 Replies)
Discussion started by: Sriram.Vedula53
4 Replies

5. UNIX for Dummies Questions & Answers

permanent change in file

Hi! i want to replace ; by ok in a file as below test1(filename) containt:- Hi i am kaushlesh; i am new to Unix. i want permanent change in the file like below:- Hi i am kaushlesh ok i am new to unix How i will complite this..? (2 Replies)
Discussion started by: kaushelsh168
2 Replies

6. UNIX for Dummies Questions & Answers

Setting default directory file permissions and ownership help

I'm trying to setup a directory structure for my staff which enables them full access to files in the directories with their name, and have access to anything in the shared directory. The directory structure looks like this: root@www10 # ls -l total 56 drwxr-xr-x 7 internal internal 4096... (3 Replies)
Discussion started by: v_greg
3 Replies

7. UNIX for Dummies Questions & Answers

Multiple groups in directory / file permissions

Hi I need to permit one group to have r-x permissions on all files in a directory and another group to have just read access, im confused how to do this as if i set the 'Other' permission class as read access then all users will have access to them. So basically i have a directory which the... (2 Replies)
Discussion started by: m3y
2 Replies

8. Shell Programming and Scripting

Checking directory permissions on UNIX directory

Hi, How do i check if I have read/write/execute rights on a UNIX directory? What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present. if then...... And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies

9. Solaris

Directory Permissions for 2 users on 1 directory

we want to allow user to FTP files into a directory, and then the program (PLSQL) will read and process the file, and then move the file to other directory for archiving. the user id: uftp1, group: ftp the program run in oracle database, thus have the user Id: oraprod, group: dba how to... (2 Replies)
Discussion started by: siakhooi
2 Replies

10. UNIX for Beginners Questions & Answers

Override a file in directory with no permissions

Hi, I am performing unit testing in an unix environment. i have read access to all the files in this environment, but i can't copy any files from my home directory to test environment. Is there any way i can override files in testing environment. What is the command to override a file in... (1 Reply)
Discussion started by: surendra.88
1 Replies
CGCREATE(1)							 libcgroup Manual						       CGCREATE(1)

NAME
cgcreate - create new cgroup(s) SYNOPSIS
cgcreate [-h] [-s] [-t <tuid>:<tgid>] [-a <agid>:<auid>] [-f mode] [-d mode] -g <controllers>:<path> [-g ...] DESCRIPTION
The command creates new cgroup(s) defined by the options -g. -a <agid>:<auid> defines the name of the user and the group which own the rest of the defined control group's files. These users are allowed to set subsystem parameters and create subgroups. The default value is the same as has the parent cgroup. -d, --dperm=mode sets the permissions of a control groups directory. The permissions needs to be specified as octal numbers e.g. -d 775. -f, --fperm=mode sets the permissions of the control groups parameters. The permissions needs to be specified as octal numbers e.g. -f 775. The value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others permis- sions to the owners permissions). -g <controllers>:<path> defines control groups to be added. controllers is a list of controllers and path is the relative path to control groups in the given controllers list. This option can be specified multiple times. -h, --help display this help and exit -s, --tperm=mode sets the permissions of the control group tasks file. The permissions needs to be specified as octal numbers e.g. -f 775. The value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others permis- sions to the owners permissions). -t <tuid>:<tgid> defines the name of the user and the group, which owns tasks file of the defined control group. I.e. this user and members of this group have write access to the file. The default value is the same as has the parent cgroup. FILES
SEE ALSO
cgrules.conf (5) cgexec (1) cgclassify (1) Linux 2009-03-15 CGCREATE(1)
All times are GMT -4. The time now is 12:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy