Sponsored Content
Full Discussion: FTPD ls problem on Sol10
Operating Systems Solaris FTPD ls problem on Sol10 Post 302866615 by maverick72 on Tuesday 22nd of October 2013 11:57:23 AM
Old 10-22-2013
FTPD ls problem on Sol10

Hey guys,

i'm pretty sure this is simple enough so i'll go quick. I must be missing something but can't pinpoint it.

NOTE: Yes, i should be using proftpd but the architect team is a pain in the butt and it is not possible right now.

Sol10 FTP server (zoned) MS vista ftp client.

Login is good. Path is good has he sees his home at /

Code:
normal ftp user
ftpuser1:x:204:209:FST FTP:/home/ftpuser1/ftp:/bin/false

/etc/ftpd/ftpaccess
restricted-uid  *

ftp> cd transfer
250 CWD command successful.

ftp> ls
200 PORT command successful.
550 *: No such file or directory.

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 0
226 Transfer complete.
ftp : 9 octets reçus en 0,00 secondes à 9000,00 Ko/s.

ftp> ls -al
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 6
drwxr-xr-x   2 ftpuser1 toto          2 Oct 21 11:54 .
drwxr-xr-x   6 ftpuser1 toto         11 Oct 21 15:17 ..
226 Transfer complete.
ftp : 124 octets reçus en 0,00 secondes à 124000,00 Ko/s.

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 0
226 Transfer complete.
ftp : 9 octets reçus en 0,00 secondes à 9,00 Ko/s.
ftp> quit

Permission on dir:
ls -ald transfer
drwxr-xr-x   2 ftpuser1 toto          2 Oct 21 11:54 transfer

Now i know ls is from binairy and dir, ls -al and ls -l are from /bin/ls But why would a simple ls give an error like that? Could it be a bug with the ftpd from Oracle/Solaris?

Could it be normal behavior on empty directories (yes the dir is empty).

I do not have the error with filezilla but since its a process app that is doing the ftp right now this doesn't work.

If anybody has a clue i would appreciate the help.

Thanks.

Eric

Last edited by maverick72; 10-23-2013 at 03:56 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

wu-ftpd question

ya i was wondering if there was anyone out there who could show me a good how to page on wu-ftpd ...im running RH 7.1 and i have the update of wu i just need to know how to use it and configure it so the users are limited to their dir and not the whole system .....any help will do ..thx (2 Replies)
Discussion started by: mista_king
2 Replies

2. UNIX for Advanced & Expert Users

ftpd message

hello, On my AIX server 4.3.3.0 the following message appears on the screen: ftpd :Failed dlopen :/usr/lib/libpag.a(shr.o):a file or directory in the path name does not exist. Please help, Thanks . (1 Reply)
Discussion started by: eyounes
1 Replies

3. Linux

Setting up Wu-FTPD server

Hey, I'm running RH 7.1 and i want to beable to swap files back and from it. I've got Wu-ftpd installed and when i try to connect on my windows box with my root account it says to login so i type root and my password and it says that it's an incorrect login. I know i have to add it to a login... (4 Replies)
Discussion started by: byblyk
4 Replies

4. UNIX for Dummies Questions & Answers

Standalone FTPD within SMF

Hello We are trying to run the WU_FTPD demon in standalone mode (-S argument) via an SMF service. Prior to SMF, this was achieved by simply commenting out the FTP line within the inetd.conf file. However, within SMF, I believe we need to carry out the following activities: i) Remove the FTP... (0 Replies)
Discussion started by: CowsUdders
0 Replies

5. Solaris

Turning in.ftpd on and off

For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now. Here's what I... (1 Reply)
Discussion started by: thomi39
1 Replies

6. UNIX Desktop Questions & Answers

how to check if a file ftpd to mainframe was actually ftpd

Hi All, I am ftping a file from unix to mainframe. Now the problem arises that i want to check if the file was ftpd or not. Is there any way i could do this? (4 Replies)
Discussion started by: vikas.rao11
4 Replies

7. Linux

wu-ftpd

Hello everyone! I looking for wu-ftpd latest rpm or sorce package. Anyone have idea where i can find? I need to install on Centos 5. please help. -thanks, :) (4 Replies)
Discussion started by: email-lalit
4 Replies

8. Solaris

issues with wu-ftpd 2.6.2 on solaris 9

Hihi, Anyone have encountered any issues with wu-ftpd on solaris 9. There are intermitten error msg 425 can't build data connection with doing ls or get or put files. I have did a sniff and from the sniffer logs I found that the FTP traffic is not using the standard protocol to... (0 Replies)
Discussion started by: ahkimkia
0 Replies

9. SuSE

Pure-FTPd [TLS] Login problem

Hello everybody Recently I installed Pure-FTPd and i tried to connect to my server and i try to login using my ID/PW i got always anonymous login.... here what i got, # ftp ftp> open localhost Trying 127.0.0.1... Connected to localhost. 220---------- Welcome to Pure-FTPd ----------... (0 Replies)
Discussion started by: hael
0 Replies

10. Solaris

Ftpd alarms

Hi, I am facing following alarms in var/adm/messages after an interval of 10 mins. I dont know what the impact is and how can i fix it. Can anyone help please? Dec 4 07:50:03 hxcsvc-a01 ftpd: open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory Dec ... (4 Replies)
Discussion started by: sni_engineer
4 Replies
ftpd_selinux(8) 					 ftpd SELinux policy documentation					   ftpd_selinux(8)

NAME
ftpd_selinux - Security-Enhanced Linux policy for ftp daemons. DESCRIPTION
Security-Enhanced Linux provides security for ftp daemons via flexible mandatory access control. FILE_CONTEXTS SELinux requires files to have a file type. File types may be specified with semanage and are restored with restorecon. Policy governs the access that daemons have to files. Allow ftp servers to read the /var/ftp directory by adding the public_content_t file type to the directory and by restoring the file type. semanage fcontext -a -t public_content_t "/var/ftp(/.*)?" restorecon -F -R -v /var/ftp Allow ftp servers to read and write /var/tmp/incoming by adding the public_content_rw_t type to the directory and by restoring the file type. This also requires the allow_ftpd_anon_write boolean to be set. semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?" restorecon -F -R -v /var/ftp/incoming BOOLEANS
SELinux policy is based on least privilege required and may also be customizable by setting a boolean with setsebool. Allow ftp servers to read and write files with the public_content_rw_t file type. setsebool -P allow_ftpd_anon_write on Allow ftp servers to read or write files in the user home directories. setsebool -P ftp_home_dir on Allow ftp servers to read or write all files on the system. setsebool -P allow_ftpd_full_access on Allow ftp servers to use cifs for public file transfer services. setsebool -P allow_ftpd_use_cifs on Allow ftp servers to use nfs for public file transfer services. setsebool -P allow_ftpd_use_nfs on system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>. SEE ALSO
selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8) dwalsh@redhat.com 17 Jan 2005 ftpd_selinux(8)
All times are GMT -4. The time now is 10:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy