UNIX file Permission


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users UNIX file Permission
# 1  
Old 11-19-2009
UNIX file Permission

I am trying to FTP files from windows to UNIX (IBM AIX). After having sent the files to unix server. Permisssion of the files becomes 640 (rw-r-----). I have to manually login to unix and do chmod 644 on the folder to give it permission. Is it possible that the files automaically be set to 644 on ftp from windows to unix.
# 2  
Old 11-19-2009
You would have to look at this line in /etc/inetd.conf on your AIX box:
Code:
ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd         ftpd -u 002

See the umask at the end of line?
...
# 3  
Old 11-20-2009
Which FTP Server are you using? I had the same problem on Vsftpd Server ... I solved it by editing the following parameter in /etc/vsftpd.conf file
Code:
  local_umask=022

so as you can see you can indicate eny unmask option you like ;-)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Change unix permission when I don't own the file

Hi, A file is transferred from a Windows server(say username : user1) to Unix server via ftp. In unix, the permission of the file for a user, say user2 will be "-rw-r-----". Since the user1 is the owner of the file, user2 is not able to change the file permission using chmod. Is there... (5 Replies)
Discussion started by: merin
5 Replies

2. UNIX for Dummies Questions & Answers

How to find out who changed the file permission in unix

Can any one tell me is there any command to find out who changed the permission of a file Or is there any log file so that i can find out who has changed the permission of a file? Thanks in Advance:) (7 Replies)
Discussion started by: Uttamnsd
7 Replies

3. UNIX for Dummies Questions & Answers

Simple question on unix file permission

As I understand the file permissions in UNIX is basically Owner, group, others Lets assume scott user who's primary group is dev creates a file called test.dat and then grants some privileges on that file... scott@unix-host> echo "this is a test" > test.dat scott@unix-host> chmod 640... (4 Replies)
Discussion started by: luft
4 Replies

4. UNIX for Dummies Questions & Answers

unix permission

Could anyone help me ,if the permission says '0x11' .? I understand the execute permission for group and all ...but not very sure about 'x' in user position... Thanks (1 Reply)
Discussion started by: Anu_1
1 Replies

5. UNIX for Dummies Questions & Answers

Do UNIX Permission apply to sub directories?

Hi Guys, Can you tell me if unix permissions apply to sub dirs? Dir is /home/ops/batch/files/all /home is rwxrwxrwx ops is rwxrwxrwx batch is rwxr-wr-w files is rwxrwxrwx all is rwxrwxrwx Having problems writing to all (does the userid nee to be the batch owner... (1 Reply)
Discussion started by: Grueben
1 Replies

6. Shell Programming and Scripting

How to rename a file even when it shows permission Denied in Unix

While executing a script, I am not being able to able to create a file as the file with the same name already exists. That existing file is not getting overwritten as I am not the owner of the file. So, Neither am I able to rename the file nor delete the existing file, so as to get my file created.... (2 Replies)
Discussion started by: Haimanti
2 Replies

7. Shell Programming and Scripting

How to create a file with full permission in unix script

In my script, I am creating a file ----> then writting one line (i.e. Timestamp) ----> then FTP'ing. The same script can be executed by many other users. While other users executing this script, they couldn't Over write this one line (i.e. Timestamp) My expectation So I wanted to create a... (2 Replies)
Discussion started by: sbmk_design
2 Replies

8. UNIX for Dummies Questions & Answers

unix permission

what is the textual representation of 3733 -rwx-wS-wt ==> is this ok..? Thanks for your help (1 Reply)
Discussion started by: Ujan
1 Replies

9. Shell Programming and Scripting

Gather File permission during scripting on unix as numbers.

Hi, I have a script with following file permission on box. -rwxr-xr-x 1 root system 15347 Aug 14 15:08 b_reboot.ksh Without calculating or watching at -rwxr-xr-x (permission's) of this above mentioned file. I would like to get the file permission assigned to a file. Basically... (7 Replies)
Discussion started by: ajilesh
7 Replies

10. Windows & DOS: Issues & Discussions

unix to win2k permission

Hello! Im running a unix server that has a mounted nfs drive to a win2k server. The way it works is that the files are created on the unix server and the copied to the mounted win2k disk. What happens is that the permisson on the file from unix gets no owner, and you have to set this your self.... (0 Replies)
Discussion started by: dozy
0 Replies
Login or Register to Ask a Question