FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 22nd, 2003, 03:30 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
Help me how to install Any FTP server installation on RedHat Linux 7.3

Hi,
I installed RedHatLinux 7.3, How can i Install any FTP Server (VsFTP or Wu-Ftp) on my system. I want to allow only one user for Ex: XYZ rest all users should not having access and disble the guest, anonymous users. Also i want to allow the user "XYZ" once he logged in his default home directory sdhould be ex: /var/www/html.

Please help me

Reply With Quote
  #2  
Old October 22nd, 2003, 04:47 AM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
install eg. wuftpd from your distr cd
1. rpm -i --test wuftp.X.X.X.i386.rpm (whatever name it comes as)
2. if depended on other packages, install them prior to installing wuftp
3. ready to install? issue rpm -ivh wuftp.X.X.X.i386.rpm
4. add user and group XYZ
5. create eg. /ftp/XYZ directory
6. set the ownership of the XYZ subdirectory in /ftp to XYZ user and group
7. change /etc/passwd XYZ entry like this: XYZ:x:506:507:Test user:/ftp/XYZ:/bin/bash (just change the home dir to /ftp/XYZ)
8. add: 'reluser XYZ' entry to your /etc/ftpaccess
9. test access from other host

That's it. It works for me this way.

Reply With Quote
  #3  
Old October 22nd, 2003, 07:21 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
Thanks, Working great.
Can you tell me how can i set the default directory as webserver directory, if i set like this i am not able to access webserver in my browser..??

Reply With Quote
  #4  
Old October 22nd, 2003, 07:47 AM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
Check the permission of the directory where your webserver holds the documents ...

From your request you should put the XYZ user into same group as www server and set html 664 (chmod 664):
1. add XYZ user to www group (whatever group the server's user belongs to)
2. chown -R wwwserver_user:wwwserver_group
3. chmod 664 /var/www/html
4. check the ftp access
5. disable the ftp service to the rest of your users:
locate directives deny-uid,deny-gid,allow-uid,allow-gid and put :
deny-uid *
deny-gid *
allow-uid XYZ
allow-gid XYZ

that should do it

Reply With Quote
  #5  
Old October 23rd, 2003, 12:48 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
Thanks It's working,
Can U help me how can i configure samba server which files can be accessed from Windows PC's and also i want enable the Tape drive on my linux server with commands...
Please help me

Reply With Quote
  #6  
Old October 23rd, 2003, 02:16 AM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
Give me and samba some time as I need to refresh my memory.
About the tape:
Your kernel must see your tape. Type:
dmesg > dmesg.txt, view this dump and locate something like st0:
eg.
journal-1299: Setting newest_mount_id to 25
Using r5 hash to sort names
ReiserFS version 3.6.25
st: Version 20020805, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi2, channel 0, id 4, lun 0
sym53c1010-33-1-<4,*>: FAST-20 WIDE SCSI 40.0 MB/s (50.0 ns, offset 31)
hda: attached ide-cdrom driver.
hda: ATAPI 48X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12


see the scsi tape st0. That is your kid.
put a tape in and as root issue:
mt -f /dev/st0 status (you should receive
montana:/home/zby # mt -f /dev/st0 status
drive type = Generic SCSI-2 tape
drive status = 637534720
sense key error = 0
residue count = 0
file number = 0
block number = 0
Tape block size 512 bytes. Density code 0x26 (unknown).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN

mt -f /dev/st0 (rewind/rewoffl/offline) are useful commands to operate your tape.
Note: st0 and nst0 stand for rewinding and nonrewinding tape.
Rewinding always rewinds itself back at the beginning as ooposed to nonrewinding. There you're on your own and must do it yourself.
Storing files/dirs:

tar -cf /dev/nst0 --preserve -b 1 /home

stores the whole /home dir, preserves the ownership of files with blocksize set to 512 bytes.

prior to this it is adviced to:
mt -f /dev/st0 setblk 512

I recommend man mt and man tar.

Also you may refer to nst0 while it actualy is st0 but not st0 to nst0.

Reply With Quote
  #7  
Old October 29th, 2003, 05:00 PM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
Clock Skew problem on RedHat Linux 7.3

Hi,
i am using 36gb scsi harddrive, 2gb ram and 1600sc dell poweredge server
after Redhat Linux 7.3 installation i am not able to install apache or php
It's giving Clock skew error, please help me ow can i rectify this problem.

Reply With Quote
  #8  
Old October 30th, 2003, 07:01 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
Hi,
Thanx,
One small problem with FTP server access.
I installed Wu-Ftpd server and created XYZ user and added in webserver group, i am able to access my web server files from windows machine but i am not able to overwrite or delete the files fro Windows machine. How can i set these permissions. please help me...

Reply With Quote
  #9  
Old October 30th, 2003, 07:05 AM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
Accessing the files using what? Samba or ftp?

Reply With Quote
  #10  
Old October 30th, 2003, 07:45 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
ftp

Reply With Quote
  #11  
Old October 30th, 2003, 07:52 AM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
check the permission of your directory in which your 'to be manipulated files' reside.
(chmod 755 dir)
Then, put a file into that dir and do chmod 644 file. ftp in and try deleting this file. You may try ftping a different file thus testing whether the problem is on file or dir or ftp setup level.

Reply With Quote
  #12  
Old October 30th, 2003, 08:02 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
i set (chmod 777 dir) still unable to overwriite or delete files on that folder, need full permissions for directory. How can i set.

Let me check whether above is working or not

Reply With Quote
  #13  
Old October 31st, 2003, 01:56 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
First time i am able to Upload the files but next i am not able to overwrite or delete the file. the following error message is displayed when i am trying to overwrite the file:

The file transfer failed.

Requested action not taken.

553 adjusttopbar.js: Permission denied on server. (Overwrite)

How can i change or set the permissions.

Reply With Quote
  #14  
Old November 1st, 2003, 05:50 PM
zby zby is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: Prague, Czech Republic
Posts: 825 zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level)zby User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 16 h 4 m 55 sec
Reputation Power: 65
You may try to check your /etc/ftpaccess for something like:
mask 022 or set mask 022

If you try fiddling around with it you may achive your goal. Also check the permissions of your file immediately after uploading. It may receive 400 or 440 mask. For instance, defaultly ftp should remove executable bits from such a file. It should be set in that ftpaccess.

Reply With Quote
  #15  
Old November 2nd, 2003, 10:09 AM
gsunilr gsunilr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: India
Posts: 22 gsunilr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to gsunilr
I got it

Thanx
I got it. problem with the enabling the overwrite and delete are set "no" to "yes" in /etc/ftpaccess.

Tanx a lot

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Help me how to install Any FTP server installation on RedHat Linux 7.3


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Linear Mode Linear Mode