One accout for FTP other to TELNET


 
Thread Tools Search this Thread
Special Forums Cybersecurity One accout for FTP other to TELNET
# 1  
Old 06-28-2002
One accout for FTP other to TELNET

Hi All,
If I want to have two user accounts from the same grop in UNIX Solaries. However, I want one of them to be used only for FTP while the other for TELNET. Can anybody tell me how to do that?
Best Regards
# 2  
Old 06-28-2002
Don't open three threads to ask the same question. I deleted the other threads.

To create an account that can be used only for ftp, I would make the shell "/usr/bin/true". Yeah, you can still telnet in, but you can't do anything and you will disconnect immediately. For such a user to be able to use ftp, "/usr/bin/true" must be added to the file "/etc/shells".

To create an account that can be used by telnet, but not ftp, give this user a regular shell like ksh. Then add it to the file /etc/ftpd/ftpusers. This file, which is badly named, is a list of users who cannot use ftp.

And sure, both users can be in the same group if you want.
# 3  
Old 06-28-2002
First of all sorry for putting the same question three time. But I did not know where excatly it fits. Therefore, I opologize for that.

Second, Thank you very much for your valuable reply. However, I need some clarification please.

For the user that can only telnet I just have to add his name to /etc/ftpd/ftpusers. Is this what you mean?

For the user that can only ftp. I did not get your point. What do you mean by creating shell "/usr/bin/true". I mean in the /etc/passwd file I just write shell "/usr/bin/true" in the shell space and add a line with shell "/usr/bin/true" in "/etc/shells file?

Thank you again
Best regards
# 4  
Old 06-28-2002
Yes just add the user to /etc/ftpd/ftpusers.

Yes in /etc/passwd, make the last field be /usr/bin/true:

uftp:x:123:456:ftp only user:/home/uftp:/usr/bin/true

And yes, add
/usr/bin/true
to /etc/shells.

If /etc/shell does not exist, you must create it and add a line for all possible shells. ftpd will check this file and will kick out anyone whose shell is not in this file.
# 5  
Old 06-28-2002
Hi,
Thank you again...
I am using Sun 5.6, and I did not find both /etc/ftpd/ftpusers (I even did not find the directory /etc/ftpd) and etc/shells. So, do I have to create both of them (using the root account)? If yest. can you please tell me their format?
Finally, where to add this line
uftp:x:123:456:ftp only user:/home/uftp:/usr/bin/true

Thank you very much for your valuable help
# 6  
Old 06-28-2002
That line was just an example a line from /etc/passwd. The files are text files. Just type them in with an editor.
# 7  
Old 06-29-2002
MySQL

Thank you very much...
it works perfectly
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

last 90 days of ftp and telnet

Aix6.1 last | grep ftp shows me only 3 days. last does not show me telnet login or the same as ftp. i'd like to get the last 90 days of users who telnet or ftp to the box. thanks in advance. (3 Replies)
Discussion started by: lawsongeek
3 Replies

2. Solaris

accout

I have a sunfire V240 but nobody seems to know the root password. I can get into ALOM but not console mode. Is there a hack or something that cn get me back into this system lo reload it? (5 Replies)
Discussion started by: dewsdwarfs
5 Replies

3. Shell Programming and Scripting

how to connect to admin accout through script

hi everyone i'm running script in c-shell and i want this script to connect to admin account in order to run other script in k-shell. after that i want the script to be severed from the admin account and to continue with the regular commands example: my script call cs-customers echo"starting... (16 Replies)
Discussion started by: naamas03
16 Replies

4. UNIX for Advanced & Expert Users

diable telnet & ftp

Hi All, I need to stop all the services for telnet & FTP as we want our server to be more secure. Please give me some steps for jumping to SSH protocol. How can i disable telnet & ftp service on my server. (1 Reply)
Discussion started by: pradeep_desh
1 Replies

5. UNIX for Dummies Questions & Answers

Ftp, telnet etc. not operational?

Well I have the programs and everything and the program itself seems to work, but they don't seem to be operateble. I ALWAYS get connection refused on everything. ftp, telnet, rlogin, ssh etc. So it must have something to do with some setting that doesn't allow connections to external hosts or... (6 Replies)
Discussion started by: riwa
6 Replies

6. Shell Programming and Scripting

Automating telnet and ftp

Hi, I want to automate FTP. I have a fair idea that this can be done using expect scripting. But I dont how to do it. Please, can anyone give me an example of how to do it in Unix. Thanks in advance (2 Replies)
Discussion started by: sendhilmani123
2 Replies

7. Linux

ftp telnet enable

hi , i have jsut installed linux 9.0 , but i can not ftp or telnet to the system . i have installed the ftp and the telnet server during installation . i have also configured the files to enable the ftp and telnet , the ftp and the telnet daemons are running , but when i do ftp : ftp... (1 Reply)
Discussion started by: ppass
1 Replies

8. UNIX for Dummies Questions & Answers

Telnet FTP scripting

Hi quick question from a unix newbie Working on a project to get me using unix, the point of this project is to find a printer on the network check for jobs in the printer if the printer has no jobs do nothing if the printer has jobs then check the status for errors and e-mail the user. This... (2 Replies)
Discussion started by: w33man
2 Replies

9. IP Networking

FTP or Telnet

Dumb question I'm sure but how on earth do I transfer files from a sco unix machine to my windows 2000 machine. I'm typing commands on my Win2000 machine. All I can seem to do is move files around on the unix system? (8 Replies)
Discussion started by: Timbash
8 Replies

10. UNIX for Dummies Questions & Answers

Automation of telnet and ftp

I have a basic query. I use telnet and ftp very frequently. I want to do it without spending time in typing username and password everytime. I know that if I have .netrc file which contains server address, username, pasword, then just typing ftp will conect to that server with that username and... (10 Replies)
Discussion started by: asutoshch
10 Replies
Login or Register to Ask a Question