Missing FTP configuration files/commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Missing FTP configuration files/commands
# 1  
Old 06-18-2015
Missing FTP configuration files/commands

I was asked if I can create an FTP only user on a UNIX system I've inherited at work. (Solaris).
I've worked on UNIX systems for a long time, but never really as an admin.

I searched the web, and on this forum, for information on exactly how to do this.
(The new user will also need to be restricted to one directory.)

I found what I was looking for, understood (I thinkSmilie) what was required, then immediately hit a hurdle.
I can't find several files and commands that were referenced in the info I found. Smilie
/etc/shells
/etc/ftpd/
ftpaccess
ftpconfig

These all were integral in what I needed to do.
Are they standard for UNIX installs, or do I need to get them?

This is the version of UNIX I am using:
SunOS 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2

Any help would be appreciated.

Thanks.
# 2  
Old 06-18-2015
What instructions were you following? They were probably specific to one particular FTP daemon.
# 3  
Old 06-18-2015
A standard user account should suffice to get it working from an FTP point of view.

To stop a login, change the default user shell to be /bin/false

Make sure that you try to login and set the password that way so that FTP will allow the login. If the password has expired, the FTP login will be refused.




Robin
# 4  
Old 06-18-2015
Quote:
Originally Posted by rbatte1
A standard user account should suffice to get it working from an FTP point of view.

To stop a login, change the default user shell to be /bin/false

Make sure that you try to login and set the password that way so that FTP will allow the login. If the password has expired, the FTP login will be refused.

Robin
There's the problem. I need to put that in the /etc/shells file. Which isn't there.
When I created one, and put that line in, all my other logins began to fail.

But it did work. I was able to login via FTP only. (ie. No telnet.)

Would I need to include all the other shells that other users use? Smilie)

But to restrict the user to one particular directory, I would need those other files and commands.

This is the link to a message on these boards that details what I need.
"https://www.unix.com/solaris/146507-how-restrict-user-specific-directory-solaris-10-a.html"
(It seems I'm not allowed to include links in my messages yet!)

Thanks.
# 5  
Old 06-19-2015
Quote:
Originally Posted by HeyMoe
There's the problem. I need to put that in the /etc/shells file. Which isn't there.
Do you?

That would permit people to login with /bin/false, which would do nothing and instantly quit, but be a login nonetheless.

Without it, they will fail to login as /bin/false. Tomato, tomahto.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

2. Solaris

ftp configuration

hi, I am using Solaris 10, actually i want to restrict user to access upper level directory while using ftp, means when user access a folder using ftp he has no access to go to base directory. If i am not wrong ftp configuration file use in solaris 10 is /etc/ftpd/ftpaccess kindly confirm, I... (1 Reply)
Discussion started by: zeeshan047
1 Replies

3. IP Networking

ftp configuration

Hi, I have been a unix box testing machine and I access to it through putty with my creditials now I have an sftp script to transfer files from that machine to some other ftp server but recently I come to know that due to some reason ftp server is not ready so I have to make my current machine... (0 Replies)
Discussion started by: rahul125
0 Replies

4. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

Hi, I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies

5. Web Development

ftp: missing chown command

hi, I'm connecting to a web server with ftp protocol and I would like to change some folders and files owner. I tried chown but it is not available. I typed "help" and this is the list I got. Is possible that the chown command is not installed on the server ? Or I don't have permissions ?... (8 Replies)
Discussion started by: aneuryzma
8 Replies

6. UNIX for Advanced & Expert Users

missing data in FTP file

Hello - I am FTPing file from remote unix box to my unix box. I am FTPing file around 2AM. some time, the complete fle is not ftping.. I am missing data in the FTP file. It happens few times in a month. Whenever, i miss the data, the file size is always 60106. The actual file size is not that... (4 Replies)
Discussion started by: govindts
4 Replies

7. Solaris

FTP - configuration

Hi all I need basic help to configure/check an FTP account on Solaris 9 (5.9) (by shell) with man ftp I'm not really able to configure that. On google or doc.sun.com I cant find a basic understanding of configuration an ftp server. Where are the files / setupfile. does somebody helps me with... (5 Replies)
Discussion started by: actino
5 Replies

8. Linux

OS errors/missing commands

Hi all, .... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: # root@host # pwd... (0 Replies)
Discussion started by: wcmmlynn
0 Replies

9. UNIX for Dummies Questions & Answers

Network Configuration Commands.....

I need to know what commands I will need to use to change a host name, IP Address, and network configurations (routerings, dns, etc) and a Unix SCO machine. Also, if there is any short tutorials on using the commands, i would defiently like that information. Thanks!!! (1 Reply)
Discussion started by: HandleX
1 Replies

10. UNIX for Dummies Questions & Answers

FTP configuration in Solaris 5.7

Hi everybody ! How can I configure the ftp in solaris systems ? Wich files ? To resume : I want to create a user wich can get from a ftp session running from a PC, some files without going up in the directories. If I attached the ksh or sh shell to the user, he can go wherever he wants. If I... (7 Replies)
Discussion started by: MarcoW
7 Replies
Login or Register to Ask a Question