FTP user and Umask issue


 
Thread Tools Search this Thread
Operating Systems AIX FTP user and Umask issue
# 1  
Old 03-22-2010
FTP user and Umask issue

Guy's

I have user ID created in AIX calld FTPuser in AppServer

Umask for this user ( FTPuser ) is umask 002

from my workstation I'm doing as the following

ftp Appserver
Connected to Appserver.
230 User FTPuser logged in.
put testfile.sh

file will be transferd but the issue is file will be transferd to my Appserver with this permission -rw-r--r--

as per the defined umas it shuold to be with this permission-rw-rw-r-- ( umask 002 )

Why I'm getting different in the permission?


Pls advices ...

Last edited by ITHelper; 03-22-2010 at 10:15 AM..
ITHelper
# 2  
Old 03-22-2010
Quote:
Originally Posted by ITHelper
[...]Why I'm getting different in the permission?[...]
Because the ftpd has a umask of its own. Use the
Code:
SITE UMASK XXX

ftp request to change it or start the ftpd with the
Code:
-u XXX

option. man ftpd.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ftp issue

In the automated process. due to space in between banking and critical, the below command is not working in the automated process. Can anyone help it out. If I am putting cd banking critical-Bas" and file get ftp'ed. but not through the below line ftp -m "ftp.com" -d "banking critical-Bas" (4 Replies)
Discussion started by: ramkumar15
4 Replies

2. UNIX for Dummies Questions & Answers

Default umask setting during ftp AIX

Hi, I have set below option in following file /etc/inetd.conf in AIX. ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -u 2 But still it created the file with permission (640): -rw-r----- 1 ftptosas ftpusrg 6091 Jul 28 12:23 diff_061920.txt Required permission... (1 Reply)
Discussion started by: mageshpsv01
1 Replies

3. IP Networking

Issue with FTP?

HI Guys, Issue:: While doing bye command on ftp, it just hings as below untill you try Ctrl+C 891 bytes received in 0.0017 seconds (526.16 Kbytes/s) ftp> bye 221-You have transferred 0 bytes in 0 files. I too have tried with other commands like, close, disconnect etc but no luck. ... (1 Reply)
Discussion started by: Atp3530
1 Replies

4. UNIX for Advanced & Expert Users

Change umask for apache user

Hi, I need to change the umask for apache user so that the other group memebers have write access to the files. The apache user has no login shell running under centos 5.6. Currently apache user have 022 umask and i need to change to 002 so that other group memeber can have write access to that... (1 Reply)
Discussion started by: phanidhar6039
1 Replies

5. Solaris

FTP user Issue and /etc/shells

Hi , I am trying to create a limited ftp user for a company on Solaris 10 . (uname : 5.10 i386) I use /bin/true shell for the user ((and use ftpconfig -d and adding user in ftpaccess guestuser)) but the problem is that when I try to log in by FTP it cannot login. when I change the shell to... (4 Replies)
Discussion started by: barry1946
4 Replies

6. AIX

default umask setting during ftp

Hi all, How do i change the default primary group of files uploaded in AIX (via ftp) in such a way that the files will be owned by tom:staff? I understand that the default file permission can be set in /etc/profile for aix by adding a new line umask=032 Do I add a line in umask as well?... (5 Replies)
Discussion started by: chipahoys
5 Replies

7. HP-UX

umask for an ftp account

Hi, I have an ftp account which is used for transferring files to a UNIX box. eventhough the permissions on the source box for the files are 777, when it reaches the destination node via this ftp transfer the permissions is getting changed to -rw-r----- can someone please help me? umask... (3 Replies)
Discussion started by: vivek_damodaran
3 Replies

8. AIX

list of default umask by user

Hi, Do you know if it's possible to have the user list with their umask on AIX system ? I need to check if they are OK but with smit and user by user, it will take all the day. :) An idea ? Thx a lot. (3 Replies)
Discussion started by: Zlikos
3 Replies

9. UNIX for Dummies Questions & Answers

new umask issue !!!

Hi, I'm playing around with umask on a hp-ux server, and I realize that I've never understand the umask thing. For example if I want to create a file with all the rwx stuff I should do: umask 000 touch newfile ls -l newfile -rw-r--r-- newfile but, what happened. I expect this file... (1 Reply)
Discussion started by: piltrafa
1 Replies
Login or Register to Ask a Question