with user- andmake
with root privileges in the new directory.make install
Be sure to have unrestricted access to root configured before you activate the module in "/etc/pam.d/sshd"; consult the example below to see how to may permit full access for "root" to file and shell.session required pam_scp.so
Lines starting with a '#' are ignored, as well as empty lines. "user" is the local username, "host" may be a host name (which has to be set to the name your name service returns on a reverse lookup, or a '*', which means all hosts), "file=" and "shell=" are set to 'allow' (1) or 'restrict' (0).<user>:<host|*>:file=<0|1>:shell=<0|1>
Users "root" and "luke" do both have full access (file=1:shell=1) from any host ('*').# pam_scp.tab # # format is: :file=[0|1]:shell=[0|1] # '*' may be used as wildcard from every host # # EXAMPLE FILE: # # root + luke both may use SCP and SFTP as well as SSH, # # volker may use a shell from host gw, but not copy files # from or to there # # volker may not access this machine from lukenukem either # for shell or file transfer # # volker may transfer files, but not use a shell, from # every other host root:*:file=1:shell=1 luke:*:file=1:shell=1 volker:gw:file=0:shell=1 volker:lukenukem:file=0:shell=0 volker:*:file=1:shell=0