Sponsored Content
Top Forums Shell Programming and Scripting To create user name with read only access Post 302434785 by rsivasan on Monday 5th of July 2010 06:35:05 AM
Old 07-05-2010
Hi,

I want a user to be created with read only access for all the directories
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

create or modify user account to have same access as root

Is there a way to create or better yet modify a user account so it has the same privs as root? (6 Replies)
Discussion started by: xadamz23
6 Replies

2. Solaris

How to create a new ftp user account with limited access..?

Hi All, I'm using solaris 2.8, and I want create a new ftp user account with the following restrictions: - Have only ftp access, no telnet or rlogin - Have restricted access to its home directory example /export/home/newuser - Deny access to any other directory. Thanks for your help, ... (6 Replies)
Discussion started by: Jeremy3
6 Replies

3. UNIX for Dummies Questions & Answers

user & group read/write access question

folks; I created a new users on my SUSE box and i need to give this user/group a read write access to one specific folder. here's the details: - I created new user "funny" under group "users". - I need to give this user "funny" a read/write access to another directory that is owned by "root".... (3 Replies)
Discussion started by: Katkota
3 Replies

4. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

5. UNIX for Advanced & Expert Users

How to create user with access only to one folder through ftp?

Hi all, Can someone help me with creating user with special privilegies? I need to create user who will have access ONLY to one folder (like /etc/log/) through ftp (read only access) and which will not have any other ways to log in like telnet, ssh etc.? (5 Replies)
Discussion started by: nypreH
5 Replies

6. UNIX for Dummies Questions & Answers

User creation (with only read only access)

I need to create a user with least permission on the production server. He should only be able to read or execute the files that to be specific. For example: I just need to give him a set of commands to run.Besides those command execution He should be prevented to run any other command and He... (2 Replies)
Discussion started by: pinga123
2 Replies

7. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

8. Solaris

samba read write access to owner and no access to other users

Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration. Regards, Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies

9. Shell Programming and Scripting

Create user with access only to one command

Hi all, Is there any way to create linux user with access only one defined command? For example, I want new user has access only to ls command. (7 Replies)
Discussion started by: nypreH
7 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 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy