Skip to main content

How to restrict FTP user to a specific directory in solaris 10

Procedure to configure FTP guest user access 

1: Create a user which you want to use for the ftp , Name of the user can be anything except "ftp" ( In our Example it is "ftpuser")

Useradd -g 10 -d /export/home/ftpuser -m -s /bin/bash ftpuser
passwd ftpuser
Enter the new password twice .

2: Run the "ftpconfig -d" command , on the home directory of newly created user. 

# ftpconfig –d /export/home/ftpuser
this updates the existing directory with the info needed to make the account restricted.
After this you can see some extra directories in /export/home/ftpuser e.g bin, dev,lib e.t.c 

3: Add the user to the /etc/ftpd/ftpaccess file. There is an existing commented entry 
# guestuser username
that can be uncommented and edited 

guestuser ftpuser

4: Confirm that the user is a member of a class in /etc/ftpd/ftpaccess this entry should a already exist in ftpaccess
class guestusers guest *

5: Modify permissions for guest user if necessary

delete no anonymous,guest # delete permission?
After this user ftpuser will not be able to delete any file .

6: Run the command 
# in.ftpd -a to allow the use of ftpaccess file 


now when user "ftpuser" ftps to this server

ftp 10.20.30.33 
Connected to 10.20.30.33. 
220 solarislab FTP server ready. 
Name (10.20.30.33:solarisuser): ftpuser 
331 Password required for ftpuser. 
Password: 
230 User ftpuser logged in. Access restrictions apply. 
Remote system type is UNIX. 
Using binary mode to transfer files. 
ftp> pwd 
257 "/" is current directory.
Note that now you will see “/” as your current directory instead of /export/home/ftpuser.

Comments

Popular posts from this blog

INSTALL CISCO VPN CLIENT ON WINDOWS 10 (32 & 64 BIT). FIX REASON 442

This article shows how correctly install Cisco VPN Client (32 & 64 bit) on Windows 10 (32 & 64 bit) using simple steps, overcome the ‘ This app can’t run on this PC ’ installation error , plus fix the Reason 442: Failed to enable Virtual Adapter error message . The article applies to New Windows 10 installations or Upgrades from earlier Windows versions and all versions before or after Windows 10 build 1511 .  To simplify the article, we’ve broken it into the following two sections: How to Install Cisco VPN client on Windows 10 (clean installation or upgrade from previous Windows), including Windows 10 build prior or after build 1511 . How to Fix Reason 442: Failed to enable Virtual Adapter on Windows 10 Figure 1. The Cisco VPN Client Reason 442: Failed to enable Virtual Adapter error on Windows 10 HOW TO INSTALL CISCO VPN CLIENT ON WINDOWS 10 (NEW INSTALLATIONS OR O/S UPGRADES) The instructions below are for new or clean Windows 10 inst...

Linux File and Directory Permissions

file & directory protection is a essential of any OS and Linux OS is no exception for it! These authorizations allow you to choose exactly who can access your files & directory, providing an overall improved system security. There was one of the major flaws in the older Windows operating-system where, by standard, all users can see each other people's information (Windows 95, 98, Me). For overcoming it, editions of the Windows based computer system such as NT, 2000, XP and 2003 lot more security features added. They fully support file & directory permissions, just as Linux system has since the beginning. Together, we'll now assess a directory listing from our Lab Linux system hosting server, to help us understand the information provided. a simple 'ls' command will give you the file and directory listing within a given directory, including the option  '-l' will display number of new areas that we are going to discuss here:

How to create a Hirens Boot CD 15.2 USB Disk

Hiren’s BootCD (HBCD) is a bootable CD that contains a set of tools that can help users to fix their computer if their system fails to boot. More specifically, HBCD contains hardware diagnostic programs, partition tools, data recovery utilities, antivirus tools and many other tools to fix your computer problems.  I write this article because I use Hiren’s BootCD frequently to troubleshoot computer problems, specially when a computer doesn’t boot anymore due to a virus attack or due to a corrupted file system. In this article you will find instructions on how to put Hiren’s BootCD on a USB flash drive (stick) in order to troubleshoot computer problems in the future.