Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Unable to connect using ftp

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 1 Week Ago
DukeNuke2's Unix or Linux Image
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 23 February 2017, 4:02 AM EST
Location: Berlin, Germany
Posts: 5,678
Thanks: 70
Thanked 297 Times in 285 Posts
Maybe you can work along to the documentation:
Administering the FTP Server (Task Map) - System Administration Guide: Network Services
Sponsored Links
    #9  
Old Unix and Linux 6 Days Ago
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 20 February 2017, 5:06 AM EST
Posts: 373
Thanks: 90
Thanked 2 Times in 2 Posts
I think I solved the problem:
on /etc/passwd I have changed the shell of the user from bashto /bin/false
them I changed the group of the ftp user, them change the permissions of the landing directory
Sponsored Links
    #10  
Old Unix and Linux 6 Days Ago
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 23 February 2017, 5:46 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,345
Thanks: 98
Thanked 1,457 Times in 1,085 Posts
Quote:
Originally Posted by fretagi View Post
on /etc/passwd I have changed the shell of the user from bashto /bin/false
them I changed the group of the ftp user, them change the permissions of the landing directory
Perhaps. Why didn't you tell us this little detail when you told us "i created a user like this" in post #1? Obviously you did not "like this" but "like this and then a lot more".

If you want an anonymous yet secure ftp-service (what you did looks like this is what you are after) you might want to set up the ftpd (ftp server daemon) in a "chroot"ed environment. See man chroot for the details on this. This way you don't need a special user at all and you can still isolate the service from the rest of the system.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
fretagi (6 Days Ago)
    #11  
Old Unix and Linux 6 Days Ago
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 20 February 2017, 5:06 AM EST
Posts: 373
Thanks: 90
Thanked 2 Times in 2 Posts
perhaps I was misled by what this blogger: Solaris_blog: FTP user with restriction to home directory(CHROOT USER) when he says
Quote:
This command if given on the Non Global zone on which user is created will give an error.
Sponsored Links
    #12  
Old Unix and Linux 6 Days Ago
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 23 February 2017, 5:46 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 5,345
Thanks: 98
Thanked 1,457 Times in 1,085 Posts
Quote:
Originally Posted by fretagi View Post
perhaps I was misled by what this blogger says
These are different points: a "local zone" in Solaris is already a (sort-of) chroot-environment and you cannot chrootin a chroot-env. Therefore you need to do this from the global zone (=parent environment) instead.

I hope this helps.

bakunin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to connect to internet bluemind2005 Red Hat 0 06-24-2016 12:33 PM
Unable to connect Wireless cooltoad Red Hat 0 11-19-2013 02:49 AM
Unable to connect SSH from HP-UX ysafi HP-UX 4 03-25-2012 04:02 PM
Unable to connect to Internet srinivas2828 Solaris 6 06-26-2009 02:31 AM
Unable to connect to HP-UX 11.11 via eXceed 7.1 smokie HP-UX 2 06-17-2006 09:14 PM



All times are GMT -4. The time now is 07:47 AM.