Sponsored Content
Operating Systems Linux Red Hat [Solved] FTP 553 Could not create file. Post 302851837 by beginningDBA on Monday 9th of September 2013 11:05:49 PM
Old 09-10-2013
[Solved] FTP 553 Could not create file.

Hi,
We have one server - "ftpserver", just setup with RedHat 5.7.

ftpserver is able to get & put from another server, however, other server are unable to get or put in the ftpserver.

Code:
# su - ftpuser
$ pwd
/home/ftpuser
$ cd ..
$ ls -ltr
drwxrwxrwx 3 ftpuser ftpuser 4096 Sep 10 09:19 ftpuser

Code:
# more ftpusers  [ & also user_list]
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

From another server,
Code:
Connected to ftpserver.
220 (vsFTPd 2.0.5)
User (ftpserver:(none)): ftpuser
---> USER ftpuser
331 Please specify the password.
Password:
---> PASS ftpuser
230 Login successful.
ftp> put test_put.txt
---> PORT 172,16,101,120,216,45
200 PORT command successful. Consider using PASV.
---> STOR test_put.txt
553 Could not create file.

---------- Post updated at 11:05 AM ---------- Previous update was at 10:56 AM ----------

Found the solutions.
By running # setsebool -P ftp_home_dir 1, it is running correctly.

Code:
---> STOR test_put.txt
150 Ok to send data.
226 File receive OK.

Hope this will be useful for others having the same problem.

Thanks.

Last edited by beginningDBA; 09-10-2013 at 12:26 AM..
This User Gave Thanks to beginningDBA For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP is using shell scripts create ? for file

ftp -n -v <<EOF verbose open 3.57.40.79 user infodvlp pr0gram ascii lcd /home/a501420038/GLA/Success_Load/ cd /ftp/SrcFiles/csg/InstruAsia/ get AU_Success_Log.txt close quit EOF Please help on this, this gives the out put "AU_Success_Log.txt?" As question mark in the last what will... (1 Reply)
Discussion started by: a501420038
1 Replies

2. Shell Programming and Scripting

FTP 553 error

Hi , I am doing a ftp file transfer to a remote system.I got an error like "553 FTP_ASCII_PUSH: Permission denied. (upload). " please help (1 Reply)
Discussion started by: Satyak
1 Replies

3. Shell Programming and Scripting

How do I access the create date from Windows after the file has been FTP'd to UNIX ?

I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation. At the end of each day, these log files are FTP'd to a directory on a UNIX box. When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies

4. Solaris

ftp 553

hello i want to put a file on a rmote system. the file is owned by the user but the parent folder is owned by root. when I cd to the folder where this file exists, I can "put" the file. when I do not cd the folder, and do put "full path of the file", I receive error 553. any idea?... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

5. Shell Programming and Scripting

FTP Error 553 I/O error.

Hi All, I have a problem when uploading txt file from windows to Unix server. I got 533 I/O error. I am using .bat file and it works for other batches but with this particular batch it doesn't work. thanks guys for helping in advance. (2 Replies)
Discussion started by: sfaqih
2 Replies

6. Shell Programming and Scripting

[Solved] how to create multiple directory in one mkdir command

Hi, Unix Gurus, - I have a simple question, I need create multiple directory. I use mkdir {dir1, dir2, dir3) I got one directory as {dir1, dir2, dir3} I searched @ google, I got answer as above code.:wall::confused: Anybody has any idea Thanks in advance ---------- Post updated... (3 Replies)
Discussion started by: ken002
3 Replies

7. HP-UX

[Solved] HOW TO CREATE VM IN HP UX 11.31

can any one tell me ..HOW TO CREATE VM IN HP UX 11.31 V3... (2 Replies)
Discussion started by: hsejar123
2 Replies

8. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

9. Shell Programming and Scripting

[Solved] How to create a script by combing two files?

I am trying to generate a csv file for utilization of each project directory. there are 10 filesystem and for each filesystem there are 16 directory. i was trying to create a script so i created two file. one is filesystem and one is project. so file looks like cat filesystems /app1 /app2... (10 Replies)
Discussion started by: anshu ranjan
10 Replies

10. AIX

[Solved] Not able to delete/create file in /tmp

This is AIX box and I am not able to create or delete file in /tmp though space is there root@ttcols01/ #touch /tmp/test_file touch: 0652-046 Cannot create /tmp/test_file. root@ttcols01/ #mkdir /tmp/test_dir mkdir: 0653-358 Cannot create /tmp/test_dir. /tmp/test_dir: Invalid file system... (9 Replies)
Discussion started by: solaris_1977
9 Replies
ftpconfig(1M)						  System Administration Commands					     ftpconfig(1M)

NAME
ftpconfig - set up anonymous FTP SYNOPSIS
ftpconfig [ftpdir] ftpconfig -d ftpdir DESCRIPTION
The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system files. This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account, creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded. OPTIONS
-d Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest FTP user accounts. OPERANDS
The following operands are supported: ftpdir The absolute pathname of the directory under which the anonymous FTP area is set up. EXIT STATUS
The following exit values are returned: 0 Successful completion 1 Improper usage of the command 2 Command failed ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5) SunOS 5.10 1 May 2003 ftpconfig(1M)
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy