Issue with vsftpd in Suse


 
Thread Tools Search this Thread
Operating Systems Linux Issue with vsftpd in Suse
# 1  
Old 09-09-2013
Issue with vsftpd in Suse

Hi,
I have SUSE LINUX Enterprise Server 9. One of (non-root) user ia facing very strange issue and I am not able to fix it. He is able to cd into a directory when he logged in through OS ssh, but can not do so when he do ftp. I am using vsftpd.
Code:
root@prod_ftp_ser03:/> su - don
prod_ftp_ser03: /home/don
(tty/dev/pts/4): bash: 53 > ls -l
total 0
lrwxrwxrwx  1 don cadd 11 2013-09-09 11:11 cad1 -> /disks/cad1
prod_ftp_ser03: /home/don
(tty/dev/pts/4): bash: 53 > cd cad1
prod_ftp_ser03: /home/don/cad1
(tty/dev/pts/4): bash: 54 > ls -l
total 3
drwxrwsr-x  37 antal cadd 1336 2013-08-07 13:27 CADD Engineering
drwsrwsrwx  59 antal cadd 2328 2013-09-04 15:40 Engineering Folders
prod_ftp_ser03: /home/don/cad1
(tty/dev/pts/4): bash: 55 > exit
logout
root@prod_ftp_ser03:/> ftp 0
Connected to 0.
220 Welcome to CADD Storage FTP service.
Name (0:root): don
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls -l
229 Entering Extended Passive Mode (|||45442|)
150 Here comes the directory listing.
lrwxrwxrwx    1 24668    55564          11 Sep 09 18:11 cad1 -> /disks/cad1  ----------------------------> 24668 is UID of don
226 Directory send OK.
ftp> cd cad1
550 Failed to change directory.             ----------------------------> Here it failed to go inside directory, which is link to a directory
ftp> bye
221 Goodbye.
root@prod_ftp_ser03:/>

# 2  
Old 09-09-2013
I don't use SuSE at all, but can it be an SELinux problem?

Code:
ls -Z

on the directory.
# 3  
Old 09-09-2013
It says
Code:
root@prod_ftp_ser03:~> ls -Z /home/don
Sorry, this option can only be used on a SELinux kernel.

# 4  
Old 09-09-2013
I wonder if this is a chroot issue. A lot of people jail ftp user accounts and this could be why there is a diffence in the ftp and
ssh behavior. Is the soflink in a different file system? This looks
like a possible ftp security issue that can be resolved with the correct setting. Look in the log files of the ftp server to see more information.
# 5  
Old 09-09-2013
I do not see any ftp related error in messages file. Yes, /disks/cad1 is a different file-system and cad1 is a link to that file-system.
Code:
root@prod_ftp_ser03:~> su - don
prod_ftp_ser03: /home/don
(tty/dev/pts/2): bash: 57 > ls -l
total 0
lrwxrwxrwx  1 don cadd 11 2013-09-09 11:11 cad1 -> /disks/cad1
prod_ftp_ser03: /home/don
(tty/dev/pts/2): bash: 58 > df -h /disks/cad1
Filesystem            Size  Used Avail Use% Mounted on
/dev/emcpowera1       500G  420G   81G  84% /disks/cad1
prod_ftp_ser03: /home/don
(tty/dev/pts/2): bash: 60 > ls
cad1
prod_ftp_ser03: /home/don
(tty/dev/pts/2): bash: 61 > df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p2     133G  104G   29G  79% /
prod_ftp_ser03: /home/don
(tty/dev/pts/2): bash: 62 > cd cad1
prod_ftp_ser03: /home/don/cad1
(tty/dev/pts/2): bash: 63 > df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/emcpowera1       500G  420G   81G  84% /disks/cad1
prod_ftp_ser03: /home/don/cad1

I have root access. Can I check anything else ? This was working till last friday and it is not a new setup, but not sure, what was changed and it is broke.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux SuSE SLES 8 error..unable to issue shutdown command

the only way we can power off is if we actually press power button on server. Running on HP DL-G4. from root, when we issue command it just returns to root prompt. (1 Reply)
Discussion started by: amexboy
1 Replies

2. UNIX for Advanced & Expert Users

Does vsftpd support user access with client certificate with priv/pub key + vsftpd certificate?

:rolleyes:I am trying to setup all certificate based client-server environment in Linux using vsftpd and curl with openssl. I would like to make a user access with vsftpd certificate and user own client certificate (self-signed) with private/public key. I don't see google posts about the my plan... (4 Replies)
Discussion started by: gogogo
4 Replies

3. UNIX and Linux Applications

Pro*c file Compiling Issue in suse Linux

The existing .pc (pro *C) file is running successfully in UNIX. But when Iam trying to compile this same file in LINUX using proc iname filename.pc, Iam getting an error, proc file not recognized. Could someone help how to generate execute file from the proc*c file. what are the prerequisites... (2 Replies)
Discussion started by: vikrambharat
2 Replies

4. SuSE

named service issue on Suse

Hi Experts, I have a virtual server of SUSE Linux Enterprise Server 10 (x86_64). I am having strange issue of Naming services. Every 1 or 2 hours, named service stops working on this server and then I have to start it from "/etc/init./named start" I am not getting clue, where should I start... (0 Replies)
Discussion started by: solaris_1977
0 Replies

5. SuSE

Installin Suse 11 - Mouse issue using Remote Control

hi guys I want to exhaust all the possibilities so I'm going to ask this here I am installing a Suse 11 on IBM Blade Center using Remote Control. when using this is impossible to use the mouse I see the mouse but I have no control over it I try to move it but no way it moves to fast s no... (3 Replies)
Discussion started by: kopper
3 Replies

6. UNIX for Advanced & Expert Users

Logrotate issue on SUSE 10

I'm stumped. Can anyone spot the issue? I'm running logrotate with a conf file that points to a single file. The output from logrotate indicates it copied the file and is going to truncate the file, but then the original file exists unchanged, and the copied file doesn't exist. My shell... (1 Reply)
Discussion started by: jdveencamp
1 Replies

7. Filesystems, Disks and Memory

IDE controlled / RAID card issue Suse 9.2

I just built a new box to run Suse, and I guess I shoud have spent more time researching the HCL. Anyway, the Promise RAID card I have will not work, and I am unable to install the OS. The only other IDE devide in the box is a DVDOM. I can only think of 2 options, but would appreciate some... (1 Reply)
Discussion started by: 98_1LE
1 Replies
Login or Register to Ask a Question