Sponsored Content
Top Forums UNIX for Dummies Questions & Answers User creation (with only read only access) Post 302493539 by pinga123 on Thursday 3rd of February 2011 03:35:13 AM
Old 02-03-2011
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 should not able to create any files(write permission).

How would i proceed about this.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to read i-node informations (date of creation)

Hi, I'm looking for a way to get the date of creation for a file. Is it possible ? I know that these informations are in the i-node but I don't know how to access them (if the 'find' command can do it with option -ctime, I have reasons to believe in it). Thanks for helping me ! (1 Reply)
Discussion started by: mullmafr
1 Replies

2. 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

3. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

4. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

5. Shell Programming and Scripting

To create user name with read only access

hi, how to create user name with read only access. i think first need to create group with read only access after that i need to create the user and assign it to that group. If it is correct, how to create user with read only access? (4 Replies)
Discussion started by: rsivasan
4 Replies

6. AIX

User creation

hi seniors i want to create the users like when the user try to login it should not should not promt for passwd is it possible to create users like this please help me (6 Replies)
Discussion started by: senmak
6 Replies

7. UNIX for Advanced & Expert Users

File creation with default access

Hi, I want to create files and directories with below access control System. AIX File should have 664 permission Directories should have 755 Can you please let me know how to achieve this? (3 Replies)
Discussion started by: balasubramani04
3 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

How to read files by Server Creation date wise?

Hi All, I would have many files in the server with xyz*.dat -- Static file name Physical files: xyz1.dat - 01PM xyz2.dat - 02PM xyz3.dat - 03PM In present version we are using for f in $file_name do fname=`ls $f | grep -v ^'\|'$ | sed s/' '/'\\ '/g` .... sqlldr... (4 Replies)
Discussion started by: Dharv
4 Replies
share(1M)																 share(1M)

NAME
share - make local resource available for mounting by remote systems SYNOPSIS
FSType] specific_options] description] [pathname] DESCRIPTION
The command exports, or makes a resource available for mounting, through a remote file system of type FSType. If the option is omitted, the first file system type listed in is used as default. For a description of NFS specific options, see share_nfs(1M). pathname is the pathname of the directory to be shared. When invoked with no arguments, displays all shared file systems. Options recognizes the following options: Specify the file system type. The specific_options are used to control access of the shared resource. (See share_nfs(1M) for NFS specific options.) They may be any of the following: pathname is shared read/write to all clients. This is also the default behavior. Share the pathname read-mostly if option is not provided. Read-mostly means read-write to those clients specified and read-only for all other systems. If a option is provided, pathname is shared read/write only to the listed clients. No other systems can access pathname. pathname is shared read-only to all clients. pathname is shared read-only only to the listed clients. No other systems can access pathname. The flag may be used to provide a description of the resource being shared. WARNINGS
Old terminology (export) File system sharing used to be called on HP-UX, and was used for exporting file systems. With the new share NFS model, the command replaces exportfs(1M) or To support compatiblity with scripts that still invoke the exportfs command using the access= option, the share command will not fail when the access option is used and the syntax matches the usage of exportfs(1M) from a release of HP-UX that does not support the share(1M) com- mand. Attempts to use the access option with new share options, (i.e. sec=), may result in the access option begin rejected by the share command. It is highly recommended that the access option not be used with the share command. Instead, use the ro= and rw= option to achieve the desired access restrictions. This support of the access= option will be removed in a future release of HP-UX. If commands are invoked multiple times on the same file system, the last invocation supersedes the previous; the options set by the last command replace the old options. For example, if read-only permission was previously given to on use the following command to also give read-only permission to on This behavior is not limited to sharing the root file system, but applies to all file systems. EXAMPLES
The following command wll share the file system read-only. FILES
list of commands to be executed at boot time list of distributed file system types, NFS by default system record of shared file systems AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
mountd(1M), nfsd(1M), share_nfs(1M), shareall(1M), unshare(1M), dfstab(4), fstypes(4), sharetab(4). share(1M)
All times are GMT -4. The time now is 10:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy