CUPS (Common Unix Printer System) ,FTP( File Transfer Protocol)
CUPS is the primary printing system under Red Hat Enterprise Linux. CUPS support a new Internet Printing Protocol (IPP), based on HTTP/1.1
Configuration
Steps:
- Type the following command
#printconfig
Or
#system-config-printer
Assign
Queue name : xyz
Device name : IPP
Select Printer Driver “ raw printer queue”
Server : server1.example.com
Path for the Queue Directory : /printer/xyz
And finish the Wizard
- Check the status of the Queue
#lpq
- To Print any file
#lp <filename>
#lpr <filename>
- To remove any job
#lprm job_number
Or
#cancel job_number
- To check status with job number
#lpstat
FTP:( File Transfer Protocol):-
FTP provides file sharing between linux to linux , linux to Unix and Linux to Windows
Type : System V manage
Package : vsftpd
Daemon : vsftpd
Script : vsftpd
Configuration File : /etc/vsftpd/vsftpd.conf
Port : 21
FTP service provide two level of access
- Anonymous Access
- User Access
A
In Anonymous access client machine can connect to target machine via users FTP and anonymous. In this case we don’t require password. By default these users have only permission to download (get)
B
In user access, client machine connect to Target machine by having username and password on Target machine
For anonymous user FTP working directory is ‘/’
/ = /var/ftp
We can also provide user level security
We have two files
#vi /etc/vsftpd.ftpuser
#vi /etc/vsftpd.user_list
User entry in these two file are not allowed to access ‘ftp’
If we want that user entry in vsftpd.user_list can only access ftp server then we need a entry in vsftpd.conf
#vi /etc/vsftpd/vsftpd.conf
Add following line
Userlist-deny = No
In order to assign upload permission to ftp and anonymous users
#vi /etc/vsftpd/vsftpd.conf
Anonymous-enable = yes
#uncomment line 27
Anon-upload-enable = yes
#uncomment
Chown-uploads = yes
Chown-username = daemon
Now create a directory inside /var/ftp
#mkdir upload
#chmod 777 upload
Chgrp ftp upload
Assign group owner ship to ftp to ‘upload’ directory
Start the Service
#service vsftpd restart
Access FTP
#ftp 172.24.254.254
For Anonymous user
Username = ftp
Password =`press Enter`
For User Access
Username = Deepak
Password = *****
In Graphical
To upload: put
To download : get
Example:
#put <filename> to upload any file in user home directory
#get <filename. To download any file from user home directory
We can also open ftp server as
#elinks ftp://172.24.254.254Thanks,
No comments:
Post a Comment