FTP loses write permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP loses write permissions
# 1  
Old 04-25-2012
FTP loses write permissions

Hi Guys,

i have learned today that when you ftp a file with full write permissions (777) to another destination it loses the w options. so a file that was once -rwxrwxrwx(before FTP) is now -rw-r--r-- (after FTP). why does this happen? and is it configurable?

Regards,
# 2  
Old 04-25-2012
once you ftp'ed the file, change the permission using the chmod command.

644 is default permission for the file
This User Gave Thanks to itkamaraj For This Post:
# 3  
Old 04-25-2012
great thank you. However, the user uses ultra edit (which saves the file, then ftp's it to the location required) so everytime they change something i need to go and change the permissions afterwards. and they save a lot of stuff Smilie ... so i take it that ftp is unconfigurable and its a set umask?
# 4  
Old 04-25-2012
In UltraEdit

choose the option Copy file instead of using rename when creating backup file at Advanced - Configuration - File Handling - Advanced
# 5  
Old 04-25-2012
See man ftp on your system. Many versions have the umask command and most of them have the chmod command.
# 6  
Old 04-25-2012
You can also have a umask set on the host (can be both sides...)
in /etc/inetd.conf:
Code:
ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd         ftpd -u 002

# 7  
Old 04-25-2012
Whatever value you put in a umask, unix will not create an executable file by this method. It is a security feature.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to give permissions to read write but not delete the file?

i want to give users the ability to create write and read files in other user directory , but not to have option to delete the file after created ( sticky bit not going to work here ... ) for example : i have user : manager with directory repository i have user : worker1 that need to write... (4 Replies)
Discussion started by: umen
4 Replies

2. Shell Programming and Scripting

Help- writing to dir with no write permissions (script)

hello, I have a question regarding the below script.. I just simply trying to write to a file in directory that does not have write permissions but this is failing .. it still writes to it regardless .. Many thanks in advance.. #!/bin/bash #check if dir exists, if so write to it ... (5 Replies)
Discussion started by: Reb0rn
5 Replies

3. Solaris

add a ftp user with read and write permissions on a directory

hi all how I can create an ftp user in solaris 10 and have read and write permission on a directory. Thanks. (1 Reply)
Discussion started by: luisfja
1 Replies

4. UNIX for Dummies Questions & Answers

permissions on ftp...

hi, how can I see permissions through ftp connection ? I can't see them using "ls -l" as in the local system.. thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

5. SuSE

write permissions in windows partition?

Hi everyone i was able to mount windows partition in open suse 10.3 and was able to view all contents of windows but unable to create any content in that one. Can it be done or not? (0 Replies)
Discussion started by: ganapathy.psgit
0 Replies

6. UNIX for Dummies Questions & Answers

Side-Effect of write access permissions for a subdirectory

Hi Unix Gurus, I'm a newbie to unix and need some help from you. I'm going to give full access (777) to a subdirectory to an FTP account. Let's say the subdirectory is /usr/local/dir1/dir2/dir3 There are files in dir1, say a.txt b.cfg c.xml Will this account be able to access... (3 Replies)
Discussion started by: xinu299
3 Replies

7. UNIX for Dummies Questions & Answers

Default read/write/execute permissions

I am perplexed that my script execution is not always consistent in creating new files. Specifically, my group read/write/execute permissions. For instance, take a look at the following: -rw-rw---- 1 jg dp 18648 Aug 22 10:06 nx081508.txt -rw-rw---- 1 jg dp 22422 Aug 22 10:06... (1 Reply)
Discussion started by: joeyg
1 Replies

8. Shell Programming and Scripting

i want to write a script to test the folder permissions

Hi All, I want a script to test folder permissions.( to alert me if a folder /abc/xyz does not have 775 permissions). i want to test /abc/xyz is having 775 permissions or not if not it has to alert me. Please help me ASAP Thanks in advance (4 Replies)
Discussion started by: rajesh212512
4 Replies

9. Filesystems, Disks and Memory

Export a file system with write permissions

Hi, Is there a way we can export a file system with write permissions for only one user. For eg. we have many users on the network, but only user2 should have write permissions on the exported file system and for others it should be read-only. (7 Replies)
Discussion started by: jredx
7 Replies

10. UNIX for Dummies Questions & Answers

Newly created files default group and write permissions

Whenever I create a new file the group name is "dnn" and the file permissions are "-rw-r--r--". How do I get it so when I create files (with vi or other programs) that the default group is "sss" and the permissions are 770? (I am running HP-UNIX) Thanks, GoldFish (2 Replies)
Discussion started by: goldfish
2 Replies
Login or Register to Ask a Question