Skip to main content

Solaris 10 Configure ftp path / instead of full path

1: Create a user which you want to use for the ftp , Name of the user can be anything except "ftp" 

#useradd -d /export/home/mdn -m -s /bin/bash mdn
#passwd mdn

Enter the new password twice .

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

# ftpconfig –d /export/home/mdn
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/mdn 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 mdn


4: This entry should a already exist in  in /etc/ftpd/ftpaccess 
class guestusers guest *

5: Run the command 

# in.ftpd -a 

to allow the use of ftpaccess file 

6. Restart ftp service

#svcadm restart network/ftp

now when user "mdn" ftps to this server

ftp 172.27.129.213
Connected to 172.27.129.213
220 solarislab FTP server ready. 
Name (10.30.21.33:solarisuser): mdn
331 Password required for mdn. 
Password: 
230 User mdn 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/mdn.

Comments

  1. Excellent website, excellent post as well!
    I genuinely love how it is simple on my eyes and the data
    are well written.I’m wondering how I could be notified if a new post has been made.
    I’ve subscribed to your RSS which should do the trick! maket pasta | söve fiyatları | strafor pasta altlığı | beze kulesi | strafor nedir |maket pasta strafor fiyatları | strafor objeler | strafor | strafor top | strafor sahne dekorları | pasta altlığı |

    ReplyDelete
  2. Andhra Pradesh Engineering Agricultural and Medical Common Entrance Test AP EAMCET is a state level entrance examination conducted in the state of Andhra Pradesh for the selection of candidates into Engineering and Medicine and Agriculture courses. It is conducted by Jawaharlal Nehru technical Institute.

    ReplyDelete

Post a Comment

Popular posts from this blog

Solaris. remove unusable scsi lun

Solaris remove unusable or failing scsi lun 1. The removed devices show up as drive not available in the output of the format command: # format Searching for disks...done ................      255. c1t50000974082CCD5Cd249 <drive not available>           /pci@3,700000/SUNW,qlc@0/fp@0,0/ssd@w50000974082ccd5c,f9 ................      529. c3t50000974082CCD58d249 <drive not available>           /pci@7,700000/SUNW,qlc@0/fp@0,0/ssd@w50000974082ccd58,f9 2. After the LUNs are unmapped Solaris displays the devices as either unusable or failing. # cfgadm -al -o show_SCSI_LUN | grep -i unusable # # cfgadm -al -o show_SCSI_LUN | grep -i failing c1::50000974082ccd5c,249       disk         connected    configured   failing c3::50000974082ccd58,249 ...

memory error detect XSCF uboot

If you see something like this when you poweron you server: memory error detect 80000008, address 000002d0 data 55555555 -> fbefaaaa capture_data hi fbefaaaa lo deadbeef ecc 1b1b capture_attributes 01113001 address 000002d0 memory error detect 80000008, address 000002d4 data aaaaaaaa -> deadbeef capture_data hi fbefaaaa lo deadbeef ecc 1b1b capture_attributes 01113001 address 000002d4 memXSCF uboot  01070000  (Feb  8 2008 - 11:12:19) XSCF uboot  01070000  (Feb  8 2008 - 11:12:19) SCF board boot factor = 7180     DDR Real size: 256 MB     DDR: 224 MB Than your XSCF card is broked. Replace it with new one. After that it will ask you for enter chassis number - located at front of the server XSCF promt to enter your chasses number ( is a S/N of your server ): Please input the chassis serial number : XXXXXXX 1:PANEL Please select the number : 1 Restoring data from PANEL to XSCF#0. Please wait for se...

SPARC OBP cheatsheet

Boot PROM Basics Boot PROM(programmable read only memory): It is a firmware (also known as the monitor program) provides: 1. basic hardware testing & initialization before booting. 2. contains a user interface that provide access to many important functions. 3. enables the system to boot from wide range of devices. It controls the system operation before the kernel becomes available. It provides a user interface and firmware utility commands known as FORTH command set. These commands include the boot commands, the diagnostic commands & the commands for modifying the default configuration. Command to determine the version of the Open Boot PROM on the system: # /usr/platform/'uname -m'/sbin/prtdiag -v (output omitted) System PROM revisions: ---------------------- OBP 4.16.4 2004/12/18 05:21 Sun Blade 1500 (Silver) OBDIAG 4.16.4.2004/12/18 05:21 # prtconf -v OBP 4.16.4 2004/12/18 05:21 Open Boot Architectures Standards: It is based on IEEE standard #1275, accord...