Operating System - HP-UX
1833599 Members
3668 Online
110061 Solutions
New Discussion

Question on SSH and SFTP and FTP

 
Mohammed Ali_6
Occasional Contributor

Question on SSH and SFTP and FTP

Hi, I've got few newbie questions. I would appreciate it very much if someone can give me some answers:

1. if you set rootlogin to NO in sshd_config, does that also apply to sftp or does sftp uses a seperate access control file?
2. when you create a user in SAM, where's the default .profile file SAM uses?
3. when a user logs in on HP-UX 11i, what steps do the login process goes through - i.e. does user get authenticated via PAM? Does the login process first execute /etc/profile, then $HOME/.profile? for different shell (ksh, sh) does it execute different shell initialization file?
4. how can you find out if PAM is installed on HP-UX 11i and it's being used for authentication? Where does PAM configuration file resides?

Thanks in advance.
2 REPLIES 2
RAC_1
Honored Contributor

Re: Question on SSH and SFTP and FTP

1. It applies to ssh/sftp
2. From /etc/skel
3. If user shell is set to ksh/sh, it goes throug /etc/profile, $HOME/.profile
IF user's shell is csh, the /etc/csh.login and then $HOME/.login

Anil
There is no substitute to HARDWORK
Rick Garland
Honored Contributor

Re: Question on SSH and SFTP and FTP

1) yes. You deny root login through all of the SSH tools
2) The default profile for adding usings via SAM comes from the /etc/skel directory. This includes csh as well as ksh and sh
3) system profile then the local profile
4) on 11.00 there is a /etc/pam.conf file