- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- another ftp question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:01 AM
06-09-2009 09:01 AM
ftpuser:o7dtD1r0FnNaM:113:113:,,,:/trans/./:/usr/bin/rsh
ftpuser logs in, and gets dropped in the /trans directory - no way up (good), no way down (bad)
We wish the ftpuser to have access to the subdirectories of /trans, but nothing above it, (/etc, /usr, etc.)
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:08 AM
06-09-2009 09:08 AM
Re: another ftp question
use vsftpd instead od default ftp server in HP-UX.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:29 AM
06-09-2009 09:29 AM
Re: another ftp question
In the above doc it has the FTP user set with a shell of /usr/bin/false.
My choice now is vsftpd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:29 AM
06-09-2009 09:29 AM
Re: another ftp question
ll -d /trans
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:38 AM
06-09-2009 09:38 AM
Re: another ftp question
so, that shoudn't be an issue, should it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:43 AM
06-09-2009 09:43 AM
Re: another ftp question
i think this a transport directory from SAP,
you should add the group for the ftp user,
that belongs to the SAP user, under which is the SAP running.
because the SAP creating some transaction, under this user.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 09:44 AM
06-09-2009 09:44 AM
Re: another ftp question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 10:16 AM
06-09-2009 10:16 AM
Re: another ftp question
Different is not always better.
> Currently our /etc/passwd file [...]
Is that all the configuration you've done?
What about ftpaccess?
> [...] no way down (bad)
What, exactly, does this mean? What,
exactly, fails? /usr/bin/rsh does restrict
"cd" operation. "man sh-bourne":
[...] The cd command cannot be
executed by rsh.
Perhaps /usr/bin/rsh was not the ideal choice
here.
Did you read up on guest accounts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 10:22 AM
06-09-2009 10:22 AM
Re: another ftp question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 10:28 AM
06-09-2009 10:28 AM
Re: another ftp question
This, i.e., setting up chroot'ed environments, is not my forte, but when you set up an account and jail it to a certain directory, anything that is not internal to the shell, will be non-existent to the user. Also the restricted shell might come into play and not allow the user to perform certain functions. I am not sure how well a chroot'ed account plays with a restricted shell if they play at all. You might have to create a bin directory under this jailed directory and place the command executables by copying them from the default OS location into this bin directory for the ftponly user to use. Again, most of what I am telling you here is common sense. I have not set up a chrooted account for a long time myself.
Hope this helps a little.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 10:31 AM
06-09-2009 10:31 AM
Re: another ftp question
I have downloaded vsftpd, and will put into the development system tomorrow...hopefully no one will mass at my door with torches and pitchforks.
Stay tuned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 12:53 PM
06-09-2009 12:53 PM
Re: another ftp question
You may be working harder than you need to.
> [...] We need to put a stop to regular
> users accessing the / directory. [...]
That's what a guest account is intended to
do. Reading the documentation can be very
enlightening. Honest.
alp $ ftp dy
220 dy.antinode.info FTP server (Version 1.1.214.4(PHNE_36129) Mon Apr 23 13:44:14 GMT 2007) ready.
Connected to dy.antinode.info.
Name (dy.antinode.info:sms): ftpg01
331 Password required for ftpg01.
Password:
230 User ftpg01 logged in. Access restrictions apply.
FTP> pwd
257 "/" is current directory.
FTP> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 0
drwxr-xr-x 3 2 2 96 Jun 9 15:24 usr
226 Transfer complete.
72 bytes received in 00:00:00.00 seconds (70.31 Kbytes/s)
FTP> put hpux.txt
200 PORT command successful.
150 Opening ASCII mode data connection for hpux.txt.
226 Transfer complete.
local: ALP$DKA0:[SMS.HPUX]HPUX.TXT;9 remote: hpux.txt
3443 bytes sent in 00:00:00.00 seconds (3362.30 Kbytes/s)
FTP> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 16
-rw-r----- 1 501 501 3305 Jun 9 15:45 hpux.txt
drwxr-xr-x 3 2 2 96 Jun 9 15:24 usr
226 Transfer complete.
141 bytes received in 00:00:00.00 seconds (137.70 Kbytes/s)
FTP> mkdir new_dir
257 MKD command successful.
FTP> cd new_dir
250 CWD command successful.
FTP> put hpc.txt
200 PORT command successful.
150 Opening ASCII mode data connection for hpc.txt.
226 Transfer complete.
local: ALP$DKA0:[SMS.HPUX]HPC.TXT;2 remote: hpc.txt
526 bytes sent in 00:00:00.00 seconds (513.67 Kbytes/s)
FTP> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 16
-rw-r----- 1 501 501 507 Jun 9 15:45 hpc.txt
226 Transfer complete.
77 bytes received in 00:00:00.00 seconds (75.20 Kbytes/s)
FTP> pwd
257 "/new_dir" is current directory.
FTP> cd /
250 CWD command successful.
FTP> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 16
-rw-r----- 1 501 501 3305 Jun 9 15:45 hpux.txt
drwxr-x--- 2 501 501 96 Jun 9 15:45 new_dir
drwxr-xr-x 3 2 2 96 Jun 9 15:24 usr
226 Transfer complete.
208 bytes received in 00:00:00.00 seconds (203.13 Kbytes/s)
FTP> quit
221 Goodbye.
alp $
I can't easily run CuteFTP here, but a
Mozilla-like Web browser seems to like it
well enough, and it's firmly stuck in its own
directory tree (really: "/home/ftpg01",
apparently: "/").