The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help on umask suvendu4urs Linux 6 04-11-2008 09:12 AM
Change Account to not lock account if password expires stringzz UNIX for Dummies Questions & Answers 1 04-04-2008 02:31 PM
Setting an account to be a non-login account automatically? LordJezo UNIX for Dummies Questions & Answers 0 06-16-2006 06:28 AM
Umask help x96riley3 AIX 1 04-04-2006 12:56 PM
umask bb00y UNIX for Dummies Questions & Answers 1 11-06-2002 05:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-2008
Registered User
 

Join Date: Sep 2005
Location: Milton Keynes, UK
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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 set on the destination server is 002
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-07-2008
vbe vbe is offline
Registered User
 

Join Date: Sep 2005
Posts: 292
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
-> umask set on the destination server is 002
Where?

Here is what I would do... (set a default umask for ftp)
In /etc/inetd.conf:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -u 007 #(or 077...)
Reply With Quote
  #3 (permalink)  
Old 04-07-2008
RTM's Avatar
RTM RTM is offline
Hog Hunter
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
You may not get exactly what you want on permissions.

See man page for umask AND Perderabo's UNIX File permissions

See ftp permissions problems help for setting umask on ftpd.
Reply With Quote
  #4 (permalink)  
Old 04-07-2008
Registered User
 

Join Date: Sep 2005
Location: Milton Keynes, UK
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks vbe and RTM.

It seems I will have to check with my UNIX admin as the user is 'root'

byfusp01 $ ll inetd.conf
-r--r--r-- 1 root sys 5462 Jun 29 2006 inetd.conf

currently it is set as:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a

Anyways many thanks for the valuable information.

Cheers
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102