Create user with different privilege

Hi ,

I want to create 3 different user with below privilege in Solaris and Linux.

1) Read Only
2)Read and Write Only
3) Admin user

Can you guys help me on this .

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

1 Like

You can read into:

man useradd
man usermod

hth

I'm not sure this request makes a lot of sense, as Bakunin pointed out, very politely.

With your apparent current level of understanding, please be very careful creating accounts or you can cause a lot of problems on your systems.