users need to chmod on newly ftp'd files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers users need to chmod on newly ftp'd files
# 1  
Old 06-18-2008
users need to chmod on newly ftp'd files

Is there a way to specify 774 permissions for a file uploaded to an app server via ftp without the users logging in and doing a chmod on the file they just put? I understand they were doing this with an old shared account, and it was working. When they started using their own accounts it stopped working. I checked the folder directly above and it has 774 permissions.
# 2  
Old 06-19-2008
You can set either the umask on the server side or use the ftp command "site" to set the mask or chmod. When connected to your ftp client you can use "site help" to see what's supported. Not sure if you can set the execute bit though.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Chmod by multiple users.

The requirement is that whichever user logs in and does not find /tmp/logs folder will create the folder and a file /tmp/logs/date.log and gives full permission so that every user can read and write to the file / folder. I write this code in setup.sh mkdir -p /tmp/logs touch... (8 Replies)
Discussion started by: mohtashims
8 Replies

2. Shell Programming and Scripting

How to use chmod command inside ftp block?

hi, i want to use chmod command inside ftp. so that what ever files are transfered to the local server will hav 664 permission. if i use chmod inside ftp , the file permissions gets changed in the remote server and when the file is transffered to local server using get command, it does not... (8 Replies)
Discussion started by: Little
8 Replies

3. Shell Programming and Scripting

Apply `chmod` for multiple files through FTP

Hi all, Can you please help me in this aspect. I devoloped a FTP script to copy a directory to remote server. Now i got stuck-up in changing the file permissions for all the files in directory. I tried to change the permissions of single file and I did it but failed in changing... (3 Replies)
Discussion started by: Chanakya.m
3 Replies

4. Shell Programming and Scripting

how to restrict FTP users not to delete their files

Hello all, We have an FTP Server setup with VSFTPd and its working fine without anonymous login (we must maintain this standard) The requirement is to restrict users not to overwrite (and delete) their files. In other words, once their files are uploaded to FTP Server, they should not be... (1 Reply)
Discussion started by: prvnrk
1 Replies

5. UNIX for Advanced & Expert Users

MVS->Unix FTP : Using chmod as part of FTP.

We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for unix machine. Has anyone used chmod command in association with site command in ftp? How it should be used? Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies

6. UNIX for Advanced & Expert Users

How to FTP all newly created but the current open file?

An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred. For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies

7. Shell Programming and Scripting

Script to CHMOD using FTP

Hello everybody ! Excuse me guys. I posted this In EXPERT group as well, but they don't seems to find this problem of that level, so posting it here as well.. I am developing a FTP script which will copy all the files from one server to another server and then I need to use CHMOD 755 * to... (1 Reply)
Discussion started by: sdlayeeq
1 Replies

8. UNIX for Dummies Questions & Answers

Chmod +ftp

Is there a wayto chmod via ftp for my webpage and change all files and folders from one point down? There is way too many files and folders in this to do one at a time. Thanks! (3 Replies)
Discussion started by: stormiee
3 Replies

9. UNIX for Dummies Questions & Answers

ftp protocol and quot site chmod 0

i do have a problem with the transaction of pdf-files from a server to another. there was a guy who told me about this command wich i should build in my ftp.put()-method in java. the command called: about quote site chmod 0 filename.. i think its something about filerights but does someone know... (1 Reply)
Discussion started by: calmacroi
1 Replies
Login or Register to Ask a Question