FTP user Issue and /etc/shells


 
Thread Tools Search this Thread
Operating Systems Solaris FTP user Issue and /etc/shells
# 1  
Old 09-17-2012
FTP user Issue and /etc/shells

Hi ,
I am trying to create a limited ftp user for a company on Solaris 10 .
(uname : 5.10 i386)
I use /bin/true shell for the user ((and use ftpconfig -d and adding user in ftpaccess guestuser))
but the problem is that when I try to log in by FTP it cannot login.
when I change the shell to bash it works
I tried to check the /etc/shells but there is no /etc/shells available

another question is that on the server there are 3 other ftp user by the same circumstances (created by a gone admin) which their shell is /bin/ftpaccess
how can ftpaccess be a shell ?
thanks for the help guys
# 2  
Old 09-17-2012
Start by running the following commands:
Code:
ls -l /bin/ftpaccess

and
Code:
file /bin/ftpaccess

There's a good chance that the file command will report that ftpaccess is a text file or shell script. If so cat it, or open it with your favorite editor or pager to see what it does.

If not, look for a C or C++ source file with ftpaccess as part of the filename.

Good luck
# 3  
Old 09-17-2012
the /bin/ftpaccess is in the /etc/shells but the configuration of ftp user shell (-s) doe snot accept it
I changed it to /bin/true and added this to /etc/shells and it solved the problem .

Last edited by barry1946; 09-19-2012 at 06:21 PM..
# 4  
Old 09-17-2012
I know nothing about your site's administration nor about the how your "gone admin" liked to set things up. So, I have no idea where you should start looking for source files that your previous sysadmin may have created. (Have you verified that /bin/ftpaccess isn't a text file yet?) I would start by looking in something like /usr/src, the home directory of your previous admin, or wherever else you put source files for object files on your site. If you are acting as the system administrator for your system and you don't know how to use find to search for files containing a part of a filename, I strongly suggest that you hire someone with a little bit of sysadmin experience.

If you want to use useradd -s and don't have a file named /etc/shells, create it yourself and put the absolute pathname for each shell on a separate line in it that you want to be able to add as a user's shell using useradd -s and that you want ftpd to allow users to use when using ftp to access your system.
# 5  
Old 09-19-2012
BTW, asking "how to secure ftp" begs the question of whether you should be using sftp or an https service. Securing a file access system by sending passwords in the clear on the net is not very secure. All network protocols 'transfer files', and ftp is one of the oldest (and most variable). sftp is really ssh/scp under the covers accepting ftp command interface. The online articles on how to configure ssh for sftp only might be better, since they are more recent and support a more sane path !
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Issue with FTP?

HI Guys, Issue:: While doing bye command on ftp, it just hings as below untill you try Ctrl+C 891 bytes received in 0.0017 seconds (526.16 Kbytes/s) ftp> bye 221-You have transferred 0 bytes in 0 files. I too have tried with other commands like, close, disconnect etc but no luck. ... (1 Reply)
Discussion started by: Atp3530
1 Replies

2. Red Hat

FTP issue

Hi everybody, I would like to findout a directory or a file which is located at ftp server by connecting with ftp <ip> by using any other linux utility. I tried with find and locate commands in this manner but didnt work. Please help me. Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

3. UNIX for Advanced & Expert Users

Ftp issue

Hi we are facing an issue on our server our job connects to a target server and pulls the file from a location .But it is taking too much time to do this . Hwne i manully do the ftp it finished in few seconds .but when the jobs is pulling it is taking 30 to 40 min . please see the log... (1 Reply)
Discussion started by: ptappeta
1 Replies

4. Shell Programming and Scripting

ftp issue

Hi again, I'm using the following shell script via cron to upload the daily log files from my shell to the web server so we can view them online. But somehow logs get corrupted and i don't know what's issue. I would really appreciate for your help please. Shell Script: ftp.sh #!/bin/sh... (3 Replies)
Discussion started by: user`
3 Replies

5. UNIX for Dummies Questions & Answers

FTP Issue

Hi all, iam trying to connect to a ftp site in putty by using the follwing command . ftp URLname. I get the below error ftp: usftp.ABC.com: unknown host. Iam able to connect to the same site through windows commandline. Can anyone put your thoughts on what might be the issue?. ... (2 Replies)
Discussion started by: swathich
2 Replies

6. Solaris

FTP issue

Hi guys, I have a jumpserver that I connect to in order to connect to my SOLARIS boxes. I cannot connect directly. I used a remote terminal server and from there putty to the servers. That is OK. My only problem is when I need to FTP something to it. I have found no way to do that. Any... (4 Replies)
Discussion started by: 300zxmuro
4 Replies

7. UNIX for Dummies Questions & Answers

PATH Setting for all shells of a user

How can I modify the path variable of a particular user in all shells? I searched in this forum and as per the advice in some threads created a new file .profile in $HOME directory with the new PATH, but it did not work. (5 Replies)
Discussion started by: JoyceBabu
5 Replies

8. AIX

FTP user and Umask issue

Guy's I have user ID created in AIX calld FTPuser in AppServer Umask for this user ( FTPuser ) is umask 002 from my workstation I'm doing as the following ftp Appserver Connected to Appserver. 230 User FTPuser logged in. put testfile.sh file will be transferd but the issue... (1 Reply)
Discussion started by: ITHelper
1 Replies

9. Solaris

Ftp issue please help.

Hi All. I need to FTP a file say abc.dat to client server say xyz.ibm.com location /etc/passwd/ibm with user name and password. I want to make sure my script when FTP the file abc.dat of 1000kb is correctly got transfered with the same contant every time to Clients server how do I confirm... (9 Replies)
Discussion started by: Haque123
9 Replies

10. Shell Programming and Scripting

ftp issue

I was changing a bit of the existing script and didnt comment the ftp part in it. So, the ftp step executed, but there was no input file. I got the message like this netout: write returned 0? 250 Transfer completed successfully. What does this mean?. Has the ftp replaced the existing... (1 Reply)
Discussion started by: dnat
1 Replies
Login or Register to Ask a Question