Sponsored Content
Top Forums Shell Programming and Scripting Create user with different privilege Post 302930156 by bakunin on Tuesday 30th of December 2014 07:02:08 PM
Old 12-30-2014
Could you please explain what you want to achieve?

If this is homework: there is a special forum for that. Please repost there and get a moderator to close this thread.

Otherwise: "read-write" or "read-only" are not attributes of a user but only of a user-file (or user-directory) relationship. This means, UserA can have read-write privileges for FileA, but read-only privileges for FileB, while for UserB it the other way round: RO for FileA and RW for FileB.

What "Admin user" should mean is completely unclear. Such a type of user does not exist in Unix. There is only one special user, which is "root" - to be precise any user with userID 0, regardless of the username. Because userIDs are supposed to be unique this means effectively that you can rename "root" (very bad idea usually), but not more.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Write privilege for user

Is it possible to grant write privileges to a user on a directory with out having to add the user to a group or make the user the owner of the directory? My background is in Windows and in Windows you can grant specific privileges to a user without having to put the user in a group or making the... (3 Replies)
Discussion started by: here2learn
3 Replies

2. AIX

[Help] Give privilege to an ordinary user

I'm trying to give a non-root user the right to start IBM HTTP Server, the web server is listening on port 80, but for AIX, ports under 1024 are privilege ports which can be used only by root. /usr/IBMIHS/bin# ./apachectl start (13)Permission denied: make_sock: could not bind to address :::80... (1 Reply)
Discussion started by: ibmer414
1 Replies

3. Solaris

Root privilege for user

Can anyone please tell how to give root privilege to a normal user in solaris 10? (5 Replies)
Discussion started by: nicktrix
5 Replies

4. UNIX for Dummies Questions & Answers

How to create/restrict a user with to have no privilege from other group

Hello experts I am new to Unix. Env : HPUX I need to create a user say testuser such that it does not have access to file/directories from the other group i.e the last 3 digits . How do I do that. Reason for such a request :- I have an existing user oracle which has default umask... (3 Replies)
Discussion started by: simonsimon
3 Replies

5. Solaris

what privilege to assign for user to cancel or disable print queue?

OS Version: Sun Solaris version 9 Other than root, we need operation to manage printer queue by using following command: lprm -P cancel enable/disable What privilege should be given? Pls advise. Thank you. (4 Replies)
Discussion started by: KhawHL
4 Replies

6. UNIX for Advanced & Expert Users

Flagged Drives Create Access Privilege Issues

Upon trying to open up permissions between 2 accounts in Snow Leopard I caused the os to crash - restarting/turning off then on did nothing - the os would no longer load. I took it into Apple where they got the os back up and running with a slight twist. The secondary drive was flagged (a little... (0 Replies)
Discussion started by: Alexander4444
0 Replies

7. AIX

User Privilege

How to assign superuser privilege to an ordinary user temporarily (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

8. AIX

sudo - User privilege specification

I am planning to implement sudo for users. Under , it looks I have to put the users who need to have sudo access: What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users. I'd like to know the commonly used privilege specification for sudo... (9 Replies)
Discussion started by: Daniel Gate
9 Replies

9. Cybersecurity

sudo - AIX - User privilege specification

I am planning to implement sudo for users. Under , it looks I have to put the users who need to have sudo access: What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users. I'd like to know the commonly used privilege specification for sudo... (1 Reply)
Discussion started by: Daniel Gate
1 Replies

10. Solaris

Assigning proc_owner privilege to particular user in RBAC

Hi I need to assign proc_owner privilege to particular user through RBAC. How can I assign this privilege to user, I need help on this. Further I need to understand if I give this proc_owner privilege to particular user, what kind of control user will get on other user or system processes... (7 Replies)
Discussion started by: sb200
7 Replies
cimauth(8)																cimauth(8)

NAME
cimauth - add, modify, remove, or list CIM namespace authorizations of users SYNOPSIS
cimauth -a -u username -n namespace [ -R ] [ -W ] cimauth -m -u username -n namespace [ -R ] [ -W ] cimauth -r -u username [ -n namespace ] cimauth -l cimauth -h cimauth --help cimauth --version DESCRIPTION
The cimauth command manages read and write CIM namespace authorizations of users. The operations are executed on the local host by submit- ting requests to the CIM Server. If the value of the configuration property enableNamespaceAuthorization is True , the CIM Server restricts access to namespaces based on user authorizations configured via cimauth . Changes to "Dynamic" authorization parameters does not require the CIM Server to be restarted. "Non Dynamic" configuration properties (E.g. enableNamespaceAuthorization ) can only be set as planned configuration and the CIM Server needs to be restarted to realize the change. (See cimconfig (8) for information on configuring the CIM Server.) Options The cimauth command recognizes the following options: -a Adds read and/or write authorizations to the specified user on the specified namespace. If neither the -R nor the -W option is specified, adds a read authorization by default. -h, --help Display command usage information. -l Lists all the authorizations configured in the CIM Server. -m Modifies authorizations of the specified user on the specified namespace. If neither the -R nor the -W option is specified, modifies the authorization to be a read authorization by default. -n namespace Specifies the R namespace for the operation. -r Removes authorizations of the specified user on the specified namespace. If no namespaces are specified, removes authorizations on all namespaces for the specified user. -R Specifies read authorization on the namespace. -u username Specifies the user for the operation. The specified R username must represent a valid user on the local host. --version Display CIM Server version number. -W Specifies write authorization on the namespace. EXIT STATUS
When an error occurs, an error message is written to stderr and an error value of 1 is returned. The following return values are returned: 0 Successful completion 1 Error USAGE NOTE
The cimauth command requires that the CIM Server is running. EXAMPLES
Add read authorizations to user "guest" on namespace "root/cimv2". cimauth -a -u guest -n root/cimv2 -R Add read and write authorizations to user "guest" on namespace "root/system". cimauth -a -u guest -n root/system -R -W Modify authorizations of the user "guest" on namespace "root/system" to read only. cimauth -m -u guest -n root/system -R Remove the authorizations of the user "guest" on namespace "root/system". cimauth -r -u guest -n root/system List all the authorizations configured in the CIM Server. cimauth -l SEE ALSO
cimserver(8), cimconfig(8). cimauth(8)
All times are GMT -4. The time now is 02:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy