01-30-2014
Adding UNIX user to a group
Hi,
I am new to unix. I am facing access permission issue
I want to access path
/app/compress from a user "test" but getting permission denied error
This path exist in "Main" user
So after some googling i came to know we need to add "test" user in "main" group
so path /app/compress will be accessible from "test" user as well.
How to add "test" user in "main" group
Could anyone please help on this.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Now, its been a while since i done this but I had to add a user to a group. I did that by using the usermod command and now when I superuser to the user's account and issue a "id", i get the desired gid.
i mean, output of id indicated the user is assigned to the group i want him to be in. ... (5 Replies)
Discussion started by: TRUEST
5 Replies
2. UNIX for Dummies Questions & Answers
Hey everyone, I need a little help....
I need to add my root user to a new group I have created, I'm just alittle unsure how to do this.
I know I need to use the 'useradd' command, the user 'root' needs to be added to a new group called 'beoper' and retain his membership in the following... (7 Replies)
Discussion started by: The Specialist
7 Replies
3. HP-UX
How can I add a user to a specific group without using SAM? I know I can user modprpw -G, but that will overwrite any groups the user is in with the ones I specify.
I need to assume that I do not know what groups the user is already in, so I can't put them in the modprpw command. I just need... (2 Replies)
Discussion started by: paqman
2 Replies
4. BSD
Hello
I have a group called "media" which has a 7 access to a directory with the same name, my username was not included in that group, after vimming /etc/group and adding myself to it, I notice that that group is not defined as one of my groups (by issuing the "groups" command). I know that if... (1 Reply)
Discussion started by: sirbijan
1 Replies
5. Solaris
Hi all,
I have a existing user user1 its group id dba
i have created a new user named: uta and added to group dba
my task for creating uta ( to ftp solaris server from /oracle/pcmia/dry1 & oracle/pcmia/dry2 and get some rdf ( database patch) and saved in one windows folder named d:\patch... (2 Replies)
Discussion started by: saurabh84g
2 Replies
6. Shell Programming and Scripting
Hello guys!!
If a user is already created on a server, how do you add them to another group?
The useradd command? If so then would that duplicate the user account on the server?
Thanks
Bigben (4 Replies)
Discussion started by: bigben1220
4 Replies
7. AIX
Hi,
I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over)
Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have my new Unix machine setup. Its just have one user root.
I need to create a new user and add it to a group. I want this user to have privileges as root(run all command).
I know i need to use useradd command for this.My question is:
1) To which group i should add my user? DO i need... (2 Replies)
Discussion started by: kailash19
2 Replies
9. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
10. UNIX for Beginners Questions & Answers
I believe there are two methods of adding a user to a group. using usermod and gpasswd. but most of the time we tent to use user mod. does there any difference between these two methods ....
gpasswd -a geek admins
usermod -a -G admins geek
both code add user geek to a group admin (1 Reply)
Discussion started by: lobsang
1 Replies
access(2) System Calls Manual access(2)
NAME
access() - determine accessibility of a file
SYNOPSIS
DESCRIPTION
The system call checks the file pointed to by path for accessibility according to the bit pattern contained in amode. uses the real user
ID, not the effective user ID, and the real group ID, not the effective group ID.
The value of amode is either the bit-wise inclusive OR of the access permissions to be checked, or the existence test. You can use the
following symbolic constants, defined in to test for permissions:
Read access
Write access
Execute (search) access
Check existence of file
The owner of a file has permission checked with respect to the "user" read, write, and execute mode bits. Members of the file's group
other than the owner have permissions checked with respect to the "group" mode bits. All others have permissions checked with respect to
the "other" mode bits.
If a file is currently open for execution, reports that it is not writable, regardless of the setting of its mode.
Access Control Lists - HFS File Systems Only
Read, write, and execute/search permissions are checked against the file's access control list (ACL). Each mode is checked separately
since different ACL entries can grant different permissions. The real user ID is combined with the process's real group ID and each group
in its supplementary groups list, and the access control list is searched for a match. Search proceeds in order of specificity and ends
when one or more matching entries are found at a specific level. More than one or entry can match a user if that user has a nonnull sup-
plementary groups list. If any matching entry has the appropriate permission bit set, access is permitted.
Access Control Lists - JFS File Systems Only
Read, write, and execute/search permissions are checked against the file's access control list (ACL). The real user ID is combined with
the process's real group ID and each group in its supplementary groups list, and the access control list is searched for a match. Search
proceeds in order of ACL entries and ends when the first entry matching the user ID or any of the group IDs is encountered.
If a shared text file is currently open for execution, reports that it is not writable, regardless of its access control list. However,
does not report that a shared text file open for writing is not executable, since the check is not easily done.
It also reports that a file on a read-only file system is not writable.
Security Restrictions
If the path is valid and the real user ID is superuser or a user with and privileges, always returns except when amode includes the path is
not a directory, and none of the execute bits are set in the file's mode.
See privileges(5) for more information about privileged access on systems that support fine-grained privileges.
RETURN VALUE
returns the following values:
Successful completion.
The requested access is permitted.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values.
Search permission is denied on a component of the path prefix.
The access control list does not permit the requested access
and the real user ID is not a user with or privileges.
path points outside the allocated address space for the process. The reliable detection of this error is implementation
dependent.
Too many symbolic links were encountered in translating the path name.
The length of the specified path name exceeds
bytes, or the length of a component of the path name exceeds bytes while is in effect.
Read, write, or execute (search) permission is requested for a null path name.
The named file does not exist.
A component of the path prefix is not a directory.
Write access is requested for a file on a read-only file system.
Write access is requested for a pure procedure
(shared text) file that is being executed.
SEE ALSO
acl(2), chmod(2), stat(2), setacl(2), acl(5), aclv(5), privileges(5), unistd(5).
STANDARDS CONFORMANCE
access(2)