Enable SCP user on R75.40 Management Server - 91Sec

Latest

Learning, Sharing, Creating

Tuesday, June 5, 2012

Enable SCP user on R75.40 Management Server


Enable SCP for SPLAT Smart-1 R75.40 Management Server

1) Login with the admin account

2) Enter Expert mode

3) Type adduser username
adduser scpuser

4) Enter the password when prompted

[Expert@CP-Management]# adduser scpuser
Enter password: 
Enter password (again): 
User 'scpuser' was added successfully


5) Type vi /etc/passwd

6) Change the end of the line with the username from /bin/cpshell to /bin/bash
It should look like this... username:x:0:0::/home/username:/bin/bash

[Expert@CP-Management]# vi /etc/passwd


root:x:0:0:root:/root:/bin/bash
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
admin:x:0:0::/home/admin:/bin/cpshell
postfix:*:1001:1001:postfix:/no/where:/bin/false
cp_postgres:x:1002:0::/home/cp_postgres:/bin/sh
scpuser:x:0:0::/home/scpuser:/bin/bash   
~



7) Type vi /etc/group

8) Add the username to the root group
It should look like this? root:x:0:root,username

[Expert@CP-Management]# vi /etc/group

root:x:0:root,scpuser
bin:x:1:root,cp_postgres
daemon:x:2:root
sys:x:3:root
adm:x:4:root
tty:x:5:
disk:x:6:root
mem:x:8:
kmem:x:9:
wheel:x:10:root
man:x:15:
dip:x:40:
lock:x:54:
nobody:x:99:
users:x:100:
floppy:x:19:
vcsa:x:69:
ntp:x:38:
rpm:x:37:
utmp:x:22:
pcap:x:77:
postdrop:*:1007:


9) It works right away.

10) Configure winscp to log into Mgmt server
Change protocol from sftp to scp
11. Thats all.


9) Type vi /etc/scpusers 

10) Add the username on one line within this file


11) Reboot the firewall or restart sshd service

No comments:

Post a Comment

Banner

BANNER 728X90