Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Setting write permission for particular user Post 303004569 by rbatte1 on Wednesday 4th of October 2017 01:03:48 PM
Old 10-04-2017
It's getting complicated because we don't know what other users you have.

The suggestion from hicksd8 to have a new group is a good one.

How does the file arrive? If it is created by amgr, then amgr would also need to be in the group. A simple chgrp newgroup DCI.dat should then suffice. The account amgr already has write permission so that should not be an issue. Name your new group something sensible so you know what it is for and don't abuse it.


An alternate may be to use Access Control Lists (ACLs) but they are OS dependant and may not be recovered if you restore a file. What OS and version are you using? If the suggestion above does not help, I@m sure we can work something out.



Kind regards,
Robin
These 2 Users Gave Thanks to rbatte1 For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

2. Shell Programming and Scripting

write permission to a perticular user to a directory

Hi, The requirement is like, the program needs 2 argument one is user_id and second one is directory path. My script will check if that user_id has write access to the directory path. The directory path may be in any file system like AFS or NFS. Can any one please suggest some points to... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

3. Shell Programming and Scripting

search any user files with write permission

Guys, i wanna get any user files with write permission (on user or group permission) for review but i confuse with -perm parameter. any body can help me to explain what is that mean? thank's (1 Reply)
Discussion started by: michlix
1 Replies

4. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

5. Web Development

Apache write permission issues to another user owned directory

Hi I am trying to make a web program which is command line equivalent. i have done the coding in cgi program in perl and html for basic forms to take inputs. when i ran the program from web application i see permission denied messages. after analyzing i found apache is running as wwwrun which... (2 Replies)
Discussion started by: rakeshkumar
2 Replies

6. UNIX for Advanced & Expert Users

Allow user without dir write permission to execute a script that creates files

In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies

7. AIX

Assign read write permission to the user for specific dir and it's sub dir and files in AIX

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies

8. Solaris

Giving read write permission to user for specific directories and sub directories.

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. This is for Solaris. Please help. (1 Reply)
Discussion started by: blinkingdan
1 Replies

9. UNIX for Beginners Questions & Answers

Linux sftp — how to add new user to access exist directory with write permission?

I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies
chown(1)						      General Commands Manual							  chown(1)

NAME
chown, chgrp - change file owner or group SYNOPSIS
] ] ownergroup] file ... ] ] group file ... DESCRIPTION
The command changes the owner ID of each specified file to owner and optionally the group ID of each specified file to group. The command changes the group ID of each specified file to group. In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). If either command is invoked on a regular file by other than the superuser, the set-user-ID and set-group-ID bits of the file mode (04000 and 02000 respec- tively) are cleared. Note that a given user's or group's ability to use this command can be restricted by (see setprivgrp(1M)). Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. If the option is specified and a symbolic link referencing a directory is specified on the command line, the owner or group of the directory referenced by the symbolic link and all files in the file hierarchy below it are changed. If the option is specified and a symbolic link referencing a directory is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the directory referenced by the symbolic link and all files in the file hierar- chy below it are changed. If the option is specified and a symbolic link is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the symbolic link are changed. The utility shall not follow the symbolic link to any other part of the file hierarchy. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. Operands and recognize the following operands: file Target file for which the ownership is changed. group Either a decimal group ID or a group name found in the file. owner Either a decimal user ID or a login name found in the file. Access Control Lists - HFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see acl(5)). When using in conjunction with HFS ACLs, if the new owner and/or group of a file does not have an optional ACL entry corre- sponding to and/or in the file's access control list, the file's access permission bits remain unchanged. However, if the new owner and/or group is already designated by an optional ACL entry of and/or in the file's ACL, sets the corresponding file access permission bits (and the corresponding base ACL entries) to the permissions contained in that entry. Access Control Lists - JFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see aclv(5)). When using in conjunction with JFS ACLs, if the new owner and/or group of a file have optional ACL entries corresponding to and/or in the file's access control list, those entries remain in the ACL but no longer have any effect, being superseded by the file's and/or entries. Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. RETURN VALUE
and return the following values: Successful completion. An error condition occurred. EXAMPLES
The following command changes the owner of the file to The following command searches the directory and changes each file in that directory to owner and group WARNINGS
The default operation of and for symbolic links has changed as of HP-UX release 10.0. Use the option to get the former default operation. FILES
SEE ALSO
chmod(1), setprivgrp(1M), chown(2), group(4), passwd(4), acl(5), aclv(5). STANDARDS CONFORMANCE
chown(1)
All times are GMT -4. The time now is 09:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy