The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is there a Login Log? Dave Miller UNIX for Dummies Questions & Answers 2 02-04-2008 08:24 AM
cannot login dfgdnsljdlkjl2 Forum Support Area for Unregistered Users & Account Problems 0 07-16-2007 04:47 AM
cannot login after changing login shell hardesh HP-UX 4 09-13-2005 09:21 PM
last login csaunders SUN Solaris 3 05-17-2004 08:56 AM
why i have local.profile, local.cshrc,local.login instead of .profile, .login ? abidmalik UNIX for Dummies Questions & Answers 5 08-26-2002 10:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2008
Registered User
 

Join Date: Oct 2007
Posts: 83
Stumble this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-12-2008
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 378
Stumble this Post!
.. 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..
Reply With Quote
  #3 (permalink)  
Old 01-13-2008
Registered User
 

Join Date: Oct 2007
Posts: 83
Stumble this Post!
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
Reply With Quote
  #4 (permalink)  
Old 01-14-2008
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 378
Stumble this Post!
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.
Reply With Quote
  #5 (permalink)  
Old 01-15-2008
Registered User
 

Join Date: Oct 2007
Posts: 83
Stumble this Post!
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?
Reply With Quote
  #6 (permalink)  
Old 01-16-2008
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 378
Stumble this Post!
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0