Topic: [ok]mais ou sont mes log?....
salut c'est curieux je ne trouve pas de log de mes users qui se trouvent dans sftp_config
<Default>
GlobalDownload 10m
Home /home
VirtualChroot true
IgnoreHidden true
Charset "iso-8859-1"
IdleTimeOut 50m
CanChangeTime false
DefaultRights 0775 0775
CanChangeRights false
HideFiles "^(lost\+found|www)$"
HideNoAccess true
LogFile /var/log/sftp/global.log
MaxOpenFilesForUser 12
MaxReadFilesForUser 12
MaxWriteFilesForUser 12
</Default><Group sftpbois>
LogFile /sftp/sftp_bois.log
Download 1m
Upload 0
StayAtHome true
VirtualChroot true
LimitConnection 60
LimitConnectionByIP 10
</Group><User cemoi2>
LogFile /sftp/cemoi2.log
HideFiles "^(lost\+found|fredcol|agioo|cemoi|jmcussous|lolobenas|test|munin|lapom)$"
</User>
Je ne trouve pas les log de cemoi2:
find / -name 'lapom*'
/home/lapom
Du coup je cherche voire si il y a des log pour le sftp:
find / -name 'sftp*'
/usr/lib/sftp-server
/usr/lib/openssh/sftp-server
/usr/share/man/man1/sftp.1.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sftp-verif.8.gz
/usr/share/man/man8/sftp-who.8.gz
/usr/share/man/man8/sftp-user.8.gz
/usr/share/man/man8/sftp-kill.8.gz
/usr/share/man/man8/sftp-state.8.gz
/usr/share/man/man8/sftp-admin.8.gz
/usr/bin/sftp-admin
/usr/bin/sftp-state
/usr/bin/sftp-kill
/usr/bin/sftp-who
/usr/bin/sftp-user
/usr/bin/sftp
/usr/bin/sftp-verif
/etc/ssh/sftp_config
eeee? ils sont ou?
bon un sftpferif voire ce que ça donne:
sftp-verif
#################################################
# MySecureShell Verification Tool #
#################################################
** Verifing file existance **
Verifing file existance of /bin/MySecureShell [ OK ]
Verifing file existance of /usr/bin/sftp-who [ OK ]
Verifing file existance of /usr/bin/sftp-kill [ OK ]
Verifing file existance of /usr/bin/sftp-state [ OK ]
Verifing file existance of /usr/bin/sftp-admin [ OK ]
Verifing file existance of /usr/bin/sftp-verif [ OK ]
Verifing file existance of /usr/bin/sftp-user [ OK ]
Verifing file existance of /etc/ssh/sftp_config [ OK ]
** Verifing rights **
Verifing file rights of /etc/ssh/sftp_config [ OK ]
Verifing file rights of /usr/bin/sftp-who [ OK ]
Verifing file rights of /usr/bin/sftp-verif [ OK ]
Verifing file rights of /usr/bin/sftp-user [ OK ]
Verifing file rights of /usr/bin/sftp-kill [ OK ]
Verifing file rights of /usr/bin/sftp-state [ OK ]
Verifing file rights of /usr/bin/sftp-admin [ OK ]
Verifing file rights of /bin/MySecureShell [ OK ]
** Verifing rotation logs **
MySecureShell rotation logs [ OK ]
** Verifing server status **
Verifing server status (ONLINE) [ OK ]
** Verifing server dependencies **
Show only error(s):
** Verifing server configuration (just for user: root) **
Show only error(s):
** All tests dones **
Je regarde voire si l'utilisateur a bien le shell Mysecureshell:
cat /etc/passwd
cemoi2:x:1012:1001::/home/cemoi2:/bin/MySecureShell
Mais rien d'autre... j'ai raté un truc?
Le serveur tourne sur debian lenny >>
uname -a
Linux lotus 2.6.26-2-486 #1 Thu Mar 26 00:13:41 UTC 2009 i686 GNU/Linux