03-24-2009
Limiting SFTP Users While Not Limiting Regular Users?
Hi,
I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users.
We setup a CHROOTed user in OpenSSH but it requires that the write option be disabled (for world and group) in all the parent directories of where we would like the SFTP user home directory to be. We tried to hard link the user directory to the location but it still requires write be disabled (for world and group) in the parent directories of the directory that is linked. An easy alternative would be to disable the CD command but once again I have not found a method to do so. Any ideas are greatly appreciated!
Thanks ahead of time!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I'm new to linux and unix, and i have couple of problems:
1) how can i limit the access for a user, for example, i created a user, and i want that this user will be able to be only in one directory, and will see only the files i want him to.
2) I have a domain name, and i want that every... (4 Replies)
Discussion started by: misha
4 Replies
2. UNIX for Advanced & Expert Users
Anyone know how to limit the telnet sessions on a per user basis on an HP UX Box.
I would like to limit the Maximum number of telnet seesions a user can open at any give time to around 4 or 5. I have been looking and looking and do not seem to be able to find anything on this. Any help would be... (2 Replies)
Discussion started by: Witlr
2 Replies
3. Cybersecurity
I am migrating from 5.2 to 5.3 AIX. In previous versions of AIX, including 5.2, I've been able to limit user's logins to 1 by using the following script named Block_user:
#!/bin/ksh
USER=$1
NUM=`who | grep $USER | cut -c1-8 | wc -l`
#The above ' is not a single quote but back quote
if ]... (2 Replies)
Discussion started by: Confused_lulu
2 Replies
4. HP-UX
I have tried limiting failed logins to three by the following method
logins -ox \ | awk -F: '($8 != "LK" && $1 != "root") { print $1 }' \ | while read logname; do
/usr/lbin/modprpw -m umaxlntr=3 "$logname"
done
/usr/lbin/modprdef -m umaxlntr=3
but it is failing on the 4th... any ideas?... (1 Reply)
Discussion started by: csaunders
1 Replies
5. Shell Programming and Scripting
Hi guys,
I want to know if there is a way to check the current size of the file that I output "stuff" to. For example, if I run a command that outputs data (like another shell script or C program) and i do something like
`./a.out &> tempfile.txt` within the script,
I want to be constantly... (2 Replies)
Discussion started by: solaris7
2 Replies
6. Solaris
I'm looking for a way to limit connections to a Solaris 10 box from any single IP.
The problem is that I've had more experience doing this with IPTables on Linux, rather than with IPFilter, which I've found to be somewhat feature-poor.
I hope there is some way to do this using IPFilter, I've... (2 Replies)
Discussion started by: spynappels
2 Replies
7. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
8. UNIX for Advanced & Expert Users
Hi,
I have a Debian 6 machine running Postfix 2.7.1. The email server works pretty well. I discovered that any non-root user can access to the mail queue using postqueue command just like root. How can I limit this access? (1 Reply)
Discussion started by: mjdousti
1 Replies
9. Shell Programming and Scripting
Greetings.
I have script to monitor the disk space of folder it runs every 17 min with help of cron. It sends email when disk size reaches to 85 %. Now the issue is that it continousely generates email until we clear some space in that folder. Is it possible to restrict the Script to send only... (14 Replies)
Discussion started by: manju98458
14 Replies
LEARN ABOUT DEBIAN
gesftpserver
gesftpserver(8) System Manager's Manual gesftpserver(8)
NAME
gesftpserver - Green End SFTP Server
SYNOPSIS
/usr/lib/gesftpserver [OPTIONS]
DESCRIPTION
gesftpserver implements the SFTP protocol. It is normally run as an SSH subsystem but can be run in other contexts if necessary.
CONFIGURING OPENSSH
By default, OpenSSH will use its native SFTP server in response to requests for the SFTP subsystem. To use gesftpserver instead, add a
suitable Subsystem command to sshd_config (and remove the existing one if present). For example:
Subsystem sftp /usr/lib/gesftpserver
IMPLEMENTATION DETAILS
gesftpserver supports up to version 6 of the SFTP protocol and the following extensions:
newline
Reports the server's newline convention to the client.
space-available
Equivalent to df(1).
supported
v5 capability details
supported2
v6 capability details
text-seek
Used for resuming text file downloads.
vendor-id
Reports server name and version to client. gesftpserver reports a vendor of "Green End" and a server name of "Green End SFTP
Server".
versions
Lists available versions.
version-select
Select version.
posix-rename@openssh.org
Provides POSIX rename semantics even in pre-v5 SFTP.
SEE ALSO
sshd_config(5)
gesftpserver(8)