Sponsored Content
Full Discussion: Unix access rights
Top Forums UNIX for Dummies Questions & Answers Unix access rights Post 302108447 by sb008 on Monday 26th of February 2007 05:40:17 PM
Old 02-26-2007
Quote:
Originally Posted by rudo
Hi,
Is it true that if I am not the root I can not select access permissions to a file that I own so that my friend (who also isn't the root) can access that file?
For files you own you can always change the access right. So the answer is no, this is not true.

Quote:
Originally Posted by rudo
And is it true that the only way to accomplish it is to ask the root to "put" my friend into "my" group? Then I could simply set the access rights to the file for members of my group, I think... That is why I am asking you...
If your friend doesn't belong to the same group as you do, you will have to set the access rights in such a way that "others" have access rights to your file.

If you do not want to set permission that wide, you indeed have to ask the system administrator to add your friend to the same group as you are in.

That way you don't need to allow access to "others" but can limit it to your "group".

Just setting the access rights correct for the file might even not be enough. You have to make sure that either "others" or the "group" have the correct access rights on all directories leading to the location of your file.
 

10 More Discussions You Might Find Interesting

1. SuSE

UNIX - Linux NFS Rights need Help

Hello, I am running a Suse Linux server and I want to set up a NFS Server for a few Unix machines. For the root account at the unix client it works fine but it doesn't work for other users who have no root rights. I've used the no_root_squash and the rw option in the etc/export file. My folder... (7 Replies)
Discussion started by: Ald-Edv
7 Replies

2. UNIX for Dummies Questions & Answers

file access rights?

Hi, I want to execute a customised process like rating engine using a shell script from a directory other than the directory where the customizes process is placed. I have tried it in the following way...and faced a issue when shell script is available in directory /dir1/ and customized... (1 Reply)
Discussion started by: vkishore.btw
1 Replies

3. UNIX for Dummies Questions & Answers

User Access Rights

Hi Folks, My problem is an easy one for the experts here. All my applications run using a user id that creates files with only the following default rights: -rw-r----- I want to modify this user's account such that it creates files that assign read access to the everyone group by default:... (7 Replies)
Discussion started by: umairrahman
7 Replies

4. UNIX for Advanced & Expert Users

FTP and access rights

Hello all, I am currently writing an application that besides other thing ,ftps files from remote machines (running linux and solaris). My problem is this: i am connecting to remote machines as a user other than root and i have found that there is a possibility that i will encounter folders with... (3 Replies)
Discussion started by: noam128
3 Replies

5. UNIX for Dummies Questions & Answers

Access Rights

Hello Guru, I have very unique requirement , need some help. I have one folder created in one the server A. In this folder , the file getting uploaded from some java based page. then i am calling scp through key file, which works fine in another folder of server B. Currently , what i am... (2 Replies)
Discussion started by: u263066
2 Replies

6. Red Hat

Dansguardian Access rights

well hi to all The thing is I need to allow particular site to just one or 2 user not to everybody. Can anybody tell me how do i do it. If i put there ip in exception then whole Restriction would be bypassed which i dont want. Your Responses would be highly appreciated THANKS in ADVANCE (0 Replies)
Discussion started by: achtani_jeetu
0 Replies

7. Shell Programming and Scripting

Access rights for users - list

Hi, I would like to retrieve a list of user ids on an AIX server along with the access rights that each id has? Can someone please help me on how this can be achieved? Gayathri (3 Replies)
Discussion started by: ggayathri
3 Replies

8. Red Hat

How to check local accounts have root and user access rights ?

Hi, I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access. cheers (1 Reply)
Discussion started by: ranjithm
1 Replies

9. UNIX for Dummies Questions & Answers

Question about UNIX file rights

Hello experts, i am a Unix beginner and to test the rules of file rights (rwx) i created the file /root/testdir/subdir/test.sh and set the rights of testdir,subdir, test.sh (using chmod) to various configurations in order to get an idea in which case you need which rights. Test commands... (5 Replies)
Discussion started by: mike_bn
5 Replies

10. Shell Programming and Scripting

Convert UNIX rights in a number in a sh script

Hello, i'm trying to write a script sh to convert the rights of a folder or file in a number. Explain: ls -l = rwxrwxrwx so i must display 777. Do you known where i can find so convert script Thanks Use code tags, thanks. (11 Replies)
Discussion started by: steiner
11 Replies
getaccess(1)						      General Commands Manual						      getaccess(1)

NAME
getaccess - list access rights to file(s) SYNOPSIS
user] user] group[,group]...] file ... file ... DESCRIPTION
lists for the specified files the effective access rights of the caller (that is, for their effective user ID, effective group ID, and sup- plementary groups list). By default, the command prints a symbolic representation of the user's access rights to the named file: or for read/no read, or for write/no write, and or for execute/no execute (for directories, search/no search), followed by the file name. Options recognizes the following options and command-line arguments: List access for the given user instead of the caller. A user can be a known user name, a valid ID number, or @, representing the file's owner ID. If information about more than one file is requested, the value of @ can differ for each. This option sets the user ID only. The access check is made with the caller's effective group ID and supplementary group IDs unless is also specified. List access for the given group(s) instead of the caller's effective group ID and supplementary groups list. A group can be a known group name, a valid ID number, or @, representing the file's group ID. If information about more than one file is requested, the value of @ can differ for each. List access using the caller's real user ID, group ID, and supplementary groups list, instead of effective ID values. List access rights numerically (octal digits instead of for each file requested. The bit values and are defined in the file Checking access using access control lists is described in acl(5) and aclv(5). In addition, the write bit is cleared for files on read-only file systems or shared-text programs being executed. The execute bit is not turned off for shared-text programs open for writing because it is not possible to ascertain whether a file open for writing is a shared- text program. Processes with appropriate privileges have read and write access to all files. However, write access is denied for files on read-only file systems or shared-text programs being executed. Execute access is allowed if and only if the file is not a regular file or the execute bit is set in any of the file's ACL entries. To use successfully, the caller must have search access in every directory component of the path name of the file. verifies search access first by using the caller's effective IDs, regardless of the user and group IDs specified. This is distinct from the case in which the caller can search the path but the user for whom access is being checked does not have access to the file. Note: a file name argument of has no special meaning (such as standard input) to EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. 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). RETURN VALUE
returns one of the following values: 0 Successful completion. 1 was invoked incorrectly or encountered an unknown user or group name. An appropriate message is printed to standard error. 2 A file is nonexistent or unreachable (by the caller). prints an appropriate message to standard error, continues, then returns a value of 2 upon completion. EXAMPLES
The following command prints the caller's access rights to file1 using the file's group ID instead of the caller's effective group ID and groups list. Here's how to check access by user in groups and to all files in the current directory, with access rights expressed as octal values. Here's how to list access rights for all files under AUTHOR
was developed by HP. FILES
SEE ALSO
chacl(1), getacl(1), lsacl(1), setacl(1), getaccess(2), glossary(9). getaccess(1)
All times are GMT -4. The time now is 04:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy