FTP & login


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP & login
# 1  
Old 01-12-2008
FTP & login

Folks;
Is there a way in UNIX to do the following:
When users use FTP to login to a mounted drive on Solaris server, if that was their first time login a home directory for that user will be created & if the home directory exists it won't create a home directory (user should not have a login shell, just a home directory),
for more explanation: If user xyz try to ftp to a mounted drive called "/huge" on Solaris server, if that was his first login, the system should check to see if the user has a directory under "/huge/xyz", if he has one, system would automatically take him there. if he doesn't have one, the system should create a directory called "/huge/xyz" for that user & take him there.

Any help will be very much appreciated
# 2  
Old 01-13-2008
.. maybe this is losing something in translation:
...if the user doesn't have a shell, how is the user supposed to log in?
.. you cannot FTP to a mounted drive. You ftp to a host.

Maybe a better approah would be to explain why you want to do this..
# 3  
Old 01-13-2008
Sorry for not making it clear.
The user will login into the host that has the mounted drive on.
The reason we're doing this is to allow these users access to their home directory only through FTP, so if they want to write/add files to their home directories, they can't login to the host, i want them have no access except through FTP only
# 4  
Old 01-14-2008
Again, access through FTP requires a login to the host. If you want to give users access to /huge without letting them log into the host /huge is mounted on, the easiest way would be to share that drive through NFS, and within /huge, create a directory that's writable to them where they can put their stuff.
# 5  
Old 01-15-2008
Sorry i totally messed up the requirements. But here's the right ones:

- /huge is a mounted drive on a Solaris 10 server. we need to have users login through FTP to this Solaris host so they can write to that drive (They will be authenticated through LDAP).
We need these users not to be able to login except through FTP.

Is that possible?
# 6  
Old 01-16-2008
AFAIK, LDAP doesn't restrict which protocol the user employs to login to a server; I may be wrong, but I'm no LDAP expert, and someone will correct me if I'm wrong... I guess the easiest way I see would be to just shut down all remote login services (telnet, ssh, etc) into the Solaris 10 server but for ftp, or remove the server from LDAP and make it a standalone ftp server.
# 7  
Old 10-13-2008
Quote:
Originally Posted by Katkota
Sorry i totally messed up the requirements. But here's the right ones:

- /huge is a mounted drive on a Solaris 10 server. we need to have users login through FTP to this Solaris host so they can write to that drive (They will be authenticated through LDAP).
We need these users not to be able to login except through FTP.

Is that possible?
Katkota - Did you ever find a solution to this?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. UNIX for Dummies Questions & Answers

Ftp login commands

Hello, I am using ftp on command line. The problem is getting bumped off after 15 minutes of no activity.. I have two options: quit ftp and use the command history of my shell, or stay in ftp and use 'open' command, where I can use the command history saved in the ftp program. Either option... (1 Reply)
Discussion started by: Allasso
1 Replies

3. Solaris

FTP log only shows FTP LOGIN FROM entry?

OS: Solaris 9 Configuration /etc/syslog.conf daemon.debug /etc/inetd.conf ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d Found the ftp.log only generate those entries from other servers/hosts. Can we trace on all ftp entries either from/to the server? ... (6 Replies)
Discussion started by: KhawHL
6 Replies

4. IP Networking

I can't login to any new FTP accounts

I have a website that I use sftp to connect to the root account. I am able to connect to it with sftp root@domainHowever, when I create a new user, and try to login with this account, it says permission is denied. I have already checked with my provider, and tech support said they can login... (9 Replies)
Discussion started by: trevthefatty
9 Replies

5. Solaris

FTP login failed.

Hi guys, Can you please help me. I have SUN V100 server running solaris 8. I also have a Redhat Linux 6.2 machine and a windows XP machine on the network. I'm trying to copy files from the Linux and XP machines to the V100 server. When I try to ftp to the solaris machine, I'm challenged... (2 Replies)
Discussion started by: Stin
2 Replies

6. Red Hat

limit non login id for ftp

Hi All, How can I limit a userid (/bin/false) to have access only to ftp service? On redhat ent 4. Thanks! (1 Reply)
Discussion started by: itik
1 Replies

7. UNIX for Advanced & Expert Users

FTP login problem

I've just configured a server to my network (setting the ip, netmask, host file, etc...) and the server doesn't have any problem pinging another computer on the network. however when i try to connect to the server via ftp the root account can't log in, i made another account (a standard one that... (2 Replies)
Discussion started by: pasalagua
2 Replies

8. Solaris

Solaris 9 slow login thru ssh & ftp

When I ssh to my box, an Ultra 5. I get prompted for password immediately. I enter it and have to wait sometimes a full minute for it to prompt for a password. The same thing happens when i try to ftp to the box, it will say connected, but it takes forever to prompt for password, and... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

9. UNIX for Advanced & Expert Users

login & password

I bought a pentium 2 (office auction) for my country home. When I turned it on it had Unix. It asks me for a login and password. I don't have these and since I don't know Unix I want to reformat the drive or at least be able to install Windows. I can't get past the Login and password promt. Anyone... (8 Replies)
Discussion started by: cab
8 Replies

10. UNIX for Dummies Questions & Answers

FTP login failing

Please help. I am running Solaris 8 trying to get my FTP to work. When I try to access the FTP server from another computer on the network, it connects and prompts for a password. The username and password I set up do not work as well as my root account. Neither of the accounts are set up in the... (3 Replies)
Discussion started by: zbis12
3 Replies
Login or Register to Ask a Question

Featured Tech Videos