I am running Red Hat Version 5.8, and have Openssh installed
at Version:
# rpm -qa |grep -i openssh
openssh-askpass-4.3p2-82.el5
openssh-server-4.3p2-82.el5
openssh-4.3p2-82.el5
openssh-clients-4.3p2-82.el5
#
And installed rssh at:
# rpm -qa |grep -i rssh
rssh-2.3.3-1.el5.rf
#
I am trying to have all files uploaded to server with permissions of: "664"
I've coded the rssh.conf file with:
umask = 002
allowsftp
chrootpath = "/home/sftponly"
user=logftp0:002:00010:"/home/sftponly"
user=logftp1:002:00010:"/home/sftponly"
user=logftp2:002:00010:"/home/sftponly"
user=logftp3:002:00010:"/home/sftponly"
user=logftp4:002:00010:"/home/sftponly"
user=logftp5:002:00010:"/home/sftponly"
user=logftp6:002:00010:"/home/sftponly"
user=logftp7:002:00010:"/home/sftponly"
user=logftp8:002:00010:"/home/sftponly"
user=logftp9:002:00010:"/home/sftponly"
and the /etc/passwd file is set up as:
logftp0:x:700:700:SFTP Admin Account -
logftp0:/home/sftponly/logftp0:/usr/bin/rssh
logftp1:x:701:701:SFTP Admin Account -
logftp1:/home/sftponly/logftp1:/usr/bin/rssh
logftp2:x:702:702:SFTP Admin Account -
logftp2:/home/sftponly/logftp2:/usr/bin/rssh
logftp3:x:703:703:SFTP Admin Account -
logftp3:/home/sftponly/logftp3:/usr/bin/rssh
logftp4:x:704:704:SFTP Admin Account -
logftp4:/home/sftponly/logftp4:/usr/bin/rssh
logftp5:x:705:705:SFTP Admin Account -
logftp5:/home/sftponly/logftp5:/usr/bin/rssh
logftp6:x:706:706:SFTP Admin Account -
logftp6:/home/sftponly/logftp6:/usr/bin/rssh
logftp7:x:707:707:SFTP Admin Account -
logftp7:/home/sftponly/logftp7:/usr/bin/rssh
logftp8:x:708:708:SFTP Admin Account -
logftp8:/home/sftponly/logftp8:/usr/bin/rssh
logftp9:x:709:709:SFTP Admin Account -
logftp9:/home/sftponly/logftp9:/usr/bin/rssh
But when a user sftp's a file into this server, the permissions on the file are
not set
to "664" as expected:
-> sftp logftp0@apsclog1
Connecting to apsclog1...
sftp> cd ./inbound
sftp> pwd
Remote working directory: /logftp0/inbound
sftp> put SYSINF
Uploading SYSINF to /logftp0/inbound/SYSINF
SYSINF 100% 32
0.0KB/s 00:00
sftp> ls -al
drwxrwxr-- 2 logftp0 logftp0 4096 May 19 23:41 .
drwxr-x--- 9 logftp0 logftp0 4096 May 17 22:44 ..
-rw-r--r-- 1 logftp0 logftp0 32 May 19 23:41 SYSINF
sftp> rm SYSINF
Removing /logftp0/inbound/SYSINF
sftp> ls -al
drwxrwxr-- 2 logftp0 logftp0 4096 May 19 23:41 .
drwxr-x--- 9 logftp0 logftp0 4096 May 17 22:44 ..
sftp> cd
You must specify a path after a cd command.
sftp> exit
[19:41:58] /home/smonitor
->
________________________________
NOTICE: The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or entity
to which it is directed and may contain information that is privileged or
otherwise confidential. If you have received this electronic mail transmission
in error, please delete it from your system without copying or forwarding it,
and notify the sender of the error by reply email or by telephone (collect), so
that the sender's address records can be corrected.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss