Sunday, March 7, 2010

Creating a Read Only SPLAT user

Creating a user
1. SSH to the firewall where account will be setup on.
2. From the command line type “adduser ”, here we will add the user with username testuser. The command should read “adduser testuser”
3. Input the desired password when prompted to do so


Changing the users shell
1. Open the passwd file for editing by typing “vi /etc/passwd”
2. Find the line corresponding to the user you just created. If you have created a user with username “testuser”, the line you are looking for is “testuser:x:0:0::/home/test:/bin/cpshell”
3. Change the users shell, to do this we will change “/bin/cpshell” to “/path/to/shell”.
Before the change the line should read:
“testuser:x:0:0::/home/test:/bin/cpshell”
After the change the line will read:
“testuser:x:0:0::/home/test:/etc/scripts/myshell.sh”

3 comments:

  1. on my SPLAT, R65 VSX, I don't see a script "shellforthesandbox.sh"

    Is this something you have created ?
    ReplyDelete
  2. I apologize Bill. That was an internal shell path. Updated.
    ReplyDelete
  3. This is how you add a user, but the user is ID 0 so that makes him a root/admin user, not read only.
    ReplyDelete