- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP Problem to access to home directory
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
08-28-2009 04:41 PM
08-28-2009 04:41 PM
I created an new user using useradd
useradd -u 120 -g 1500 -s /TRY/WORK jorge
after that i change the shell for the user to /usr/bin/false
also i enable the ftpaccess using flag -a in inetd.conf for ftpd
i can access from remote server ... but i can´t user the Home directory ... this is the message from remote server
230 User jorge logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 690 bytes in 2 transfers.
221-Thank you for using the FTP service on cg4.
221 Goodbye.
Also i tried to put some files from another server ... but i have not privileges
Please what i can do to use this folder like an Home directory
Any help will be appreciate
regards
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2009 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2009 12:36 PM
08-29-2009 12:36 PM
Re: FTP Problem to access to home directory
have you added /usr/bin/false to the etc/shells
a few good links on configuring ftp here
http://newfdawg.com/SHP-FTP-anon.htm
http://www.docs.hp.com/en/B2355-91058/ch02s05.html
are you using the standard /etc/ftpd/ftpaccess file?
if so check the permission and configuration in this file
http://www.docs.hp.com/en/B2355-90685/ch02s08.html
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2009 01:08 PM
08-30-2009 01:08 PM
Re: FTP Problem to access to home directory
> after that i change the shell [...]
> also i enable the ftpaccess [...]
General advice: Change one thing at a time.
In particular, I'd change the shell back to
something normal, and see if the user can do
normal work and FTP.
I'd also check the owner and permissions on
the directory.
> After connecting with ftp, run pwd [...]
Yup. When in doubt, ask the computer who
might know what's true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 10:57 AM
08-31-2009 10:57 AM
Re: FTP Problem to access to home directory
more info ...
the owner for the folder is user "CG" .. and my new user jorge has not rights to access to that folder ... how i can give rights to jorge without remove the owner to CG ????
Thanks in advanced
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 11:07 AM
08-31-2009 11:07 AM
Re: FTP Problem to access to home directory
Also, file /var/adm/syslog/syslog.log will give you some information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 11:12 AM
08-31-2009 11:12 AM
Re: FTP Problem to access to home directory
in that case, but users CG and jorge in the same group. it can be a group with only those two users if need be, for example group CGJ
then change ownership of the directory to user CG and group CGJ.
follow that by changing the permissions to allow the "group" to read/write the directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 12:17 PM
08-31-2009 12:17 PM
Re: FTP Problem to access to home directory
Now i have access and i can transfer files, but when i use "ls" command, i can´t see any files in my Home directory ... what i need to do to see all files ???
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 12:25 PM
08-31-2009 12:25 PM
Re: FTP Problem to access to home directory
can't tell, tho, as you didn't note what error you got when you tried it. if was something like "permission denied" then that should fix it. if not, post the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 12:31 PM
08-31-2009 12:31 PM
Re: FTP Problem to access to home directory
drwxrwxr-x 3 cg cg 14336 Aug 21 18:39 proc
but i can´t see the content ... just i can get and put using ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 06:36 PM
08-31-2009 06:36 PM
Re: FTP Problem to access to home directory
That's about half the information needed.
> [...] i can´t see the content [...]
WHO IS "i"?
whoami
who am i
As usual, showing actual commands with their
actual output might be more helpful than
vague descriptions and interpretations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 07:03 AM
09-01-2009 07:03 AM
Re: FTP Problem to access to home directory
All the test was made with root user, except the ftp test who was made with jorge user
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 10:53 AM
09-01-2009 10:53 AM
Re: FTP Problem to access to home directory
So, you're setting this up as a guest
account? (That's important news.)
> usr/bin:
> total 120
> -r-xr-xr-x 1 root sys 61116 Aug 31 11:34 ls
You seem to have installed an "ls" in the
right place. Is it the right "ls"? Where
did you get it? The normal "ls"
("/usr/bin/ls") needs a bunch of run-time
libraries, which you don't have in this
chroot file system. The special
(static-linked) "ls" ("/sbin/ls") should work
better.
ls -l /sbin/ls /usr/bin/ls
You want the bigger one. (I believe that
"man ftpd" mentions this.) Did you say
whether this is a PA-RISC or IA64 system?
61116 seems to be too small to be the right
"ls", but its size depends on the hardware,
and I don't have an HP-UX system running
right now, so I can't easily look at mine.
(Or, for extra credit, you could create
"/try/work/proc/usr/lib", and copy into it
all the things needed by the normal "ls", but
that would be the hard way to do it.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 12:35 PM
09-01-2009 12:35 PM
Re: FTP Problem to access to home directory
i´d copy from /usr/bin/ls to /try/work/proc/usr/bin/ls ... but after your email .. i´d copy from /sbin/ls to /try/work/proc/usr/bin/ls ... and all is working now.
Excelente help from you
Case Closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 12:37 PM
09-01-2009 12:37 PM
Re: FTP Problem to access to home directory
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 12:54 PM
09-01-2009 12:54 PM
Re: FTP Problem to access to home directory
you did, you could have had the same answer
two days sooner.