Visit Our UNIX and Linux User Community

default umask setting during ftp

Thread Tools Search this Thread
Operating Systems AIX default umask setting during ftp
# 1  
Old 06-23-2010
default primary group for ftp's files

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

Do I add a line in umask as well?

Thank you!

Last edited by chipahoys; 06-23-2010 at 04:20 AM..
# 2  
Old 06-23-2010
Originally Posted by chipahoys
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?
create a user with the credentials you want to achieve (user name, primary group) and start the ftp server as this user.

I hope this helps.

# 3  
Old 06-23-2010
In FTP configuration file there is parameter Default umask it's better to set the umask option from there... If bakunin suggestion wont work try to put script in crontab which sets permissions every minute or so...
# 4  
Old 06-23-2010
to specify the permission of umask ftp you can do it by the following steps

go to /etc/inetd.conf

Change the ftpd to be as the below

ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd  ftpd -u 2

2 it's the umask that what you want from the ftp daemon to make it !
This User Gave Thanks to Mr.AIX For This Post:
# 5  
Old 07-07-2010
decrypt without seeing the standard output

Hi guys,

I searched thru the forums for an alternative but I'm afraid I didn't find the answer -

How do I decrypt a file in AIX without seeing the standard output?

gpg: WARNING: using insecure memory!
gpg: please see GnuPG Frequently Asked Questions - for more information
gpg: encrypted with 1024-bit ELG-E key, ID 9D06BAF5, created 2009-02-16
      "gpg_Payroll <>"

I am trying to put this into a script but the following doesn't work:

echo -n `gpg -d file > file.dec`
echo `gpg -d file > file.dec > /dev/null`
echo `gpg -d file > file.dec` > /dev/null

Thanks in advance for the help!

# 6  
Old 07-07-2010
gpg -d file > file.dec 2>/dev/null

fail placed in this thread btw

Previous Thread | Next Thread
Test Your Knowledge in Computers #192
Difficulty: Medium
Hello World in Python looks like this: printLine('Hello, world!')
True or False?

9 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Setting default permissions without umask or cron jobs

I've got a number of people sending files to me in different directory structures, and users on many different groups who need access to these incoming paths. My problem is that umask assumes a default of 666 for files. No execute bit, meaning that my users can't even see the incoming folders.... (2 Replies)
Discussion started by: Karunamon
2 Replies

3. UNIX for Dummies Questions & Answers

Setting umask 022 by default to my profile

Hello everyone, I want to set my properties of my profile to umask 022 by default. I have an idea that i need to make the change in .profile file. Can you please help me, on how would i be able to set it. Thanks, Abhishek S. (4 Replies)
Discussion started by: abhisheksunkari
4 Replies

4. UNIX for Dummies Questions & Answers

UMASK setting

How can we set the Sticky bit in the umask itself. Please help me :confused: I tried to set like umask 1000 but when I run umask, the value of umask is 00 (0 Replies)
Discussion started by: geniman2004
0 Replies

5. 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

6. Shell Programming and Scripting

umask setting

dear all, i'm trying to set the default permission using umask commnd. i'm using bash shell and the permission of the .bash_profile file is -rwxr-x--- 1 tdmscrdr dba 370 Nov 7 12:21 .bash_profile but still i'm not able to change the default permissiom. in the .bash_profile... (1 Reply)
Discussion started by: panknil
1 Replies

7. Linux

setting daemon umask

I was asked to change the daemon umask on my RHEL4 machine. so, i changed the /etc/init.d/functions file. Does this take effect right away? I dont think it does, how can i get it to take affect without rebooting? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

8. AIX

umask setting on a logon script

hi, am new to AIX. i have an issue. iam asked to change the umask setting on a logon script on a server to prevent writable files. i logged in as the root user and typed in umask and it displays 022, which i believe is 755 for direc and 644 for files. 1) how to I identify where the logon script... (2 Replies)
Discussion started by: karthikosu
2 Replies

9. UNIX for Advanced & Expert Users

setting umask in FreeBSD 5.4

Hi, I need to change my umask from 22 to 0022. FreeBSD 5.4 has different way of looking at 22 and 0022. Untill 4.11 stable 022 and 0022 were same. Can anyone help me? Thanks in advance. Jimmy (0 Replies)
Discussion started by: jimmynath
0 Replies

Featured Tech Videos