1834944 Members
2421 Online
110071 Solutions
New Discussion

Re: user creation

 
vijila
Advisor

user creation

how create a user having authority to access find and grep commands
6 REPLIES 6
Raj D.
Honored Contributor

Re: user creation

Villa,

By default, when you create a user it will have access to find and grep commands, the only thing you need to do put the user in the group where the user needs to read the files. i.e read permission is required to check the files with find and grep.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: user creation

You can use this command: or can create from sam.

# useradd -u -s/bin/sh -d/home/user -c"Comment" -g -m newuser


hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
vijila
Advisor

Re: user creation

thanks for ur reply

we want to create user having access to only these commands
Raj D.
Honored Contributor

Re: user creation

Do you have sudo installed , then it is very easy , just need to configure the sudoers file.

You can check this: its free:

http://www.gratisoft.us/sudo/

Else you have to work on the unix permission side chown and chmod.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: user creation

Villa,

One more option, you can configure the user with rsh (restrcited shell , /usr/bin/rsh) and create a bin directory on its home directory and copy the files you want to give permission into this bin directoy.

For details check this link:

http://docs.hp.com/en/B2355-60127/sh-posix.1.html


Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: user creation

Looks like you are not reviewing the threads after posting. You must take time to check and review your threads.

cheers,
" If u think u can , If u think u cannot , - You are always Right . "