The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Permission 711---RWX---X---X bobo UNIX for Dummies Questions & Answers 6 03-29-2006 08:50 AM
Permission? rahulrathod UNIX for Dummies Questions & Answers 1 02-13-2006 09:31 AM
permission dozy UNIX for Dummies Questions & Answers 1 12-28-2004 08:00 AM
permission help eloquent99 UNIX for Dummies Questions & Answers 2 02-12-2003 01:30 AM
su permission siavoush UNIX for Dummies Questions & Answers 12 06-15-2002 08:56 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-10-2002
Registered User
 

Join Date: Apr 2002
Location: Italy
Posts: 4
Question Ftp permission 644

On Sun Solaris 8 I would like a user to post via FTP a file with a put command with higher permission than the standard 644. For instance 664.
I don't know how to perform it.

Thank you in advance.
Forum Sponsor
  #2  
Old 04-10-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Sounds like a job for umask!

On the unix side check the umask value either in the user's home directory inside the .profile or the /etc/profile that is the default if there is no umask defined in the user's .profile.

Remember, the umask is the opposite of permissions, if you want 644 then the umask is set to typically 022. You cannot set executable permissions with umask.

Try this and get back to me.

__________________
My brain is your brain
  #3  
Old 04-10-2002
Registered User
 

Join Date: Apr 2002
Location: Italy
Posts: 4
I've already tried to do it ....

I've already tried to do it ....
I inserted such a row in .profile file (umask 002) of the user and this user now creates files with 664 permission but when this user puts a new file via ftp it still has 644 permission.
Very interesting!!

Thank you very much.
Dan

Quote:
Originally posted by Kelam_Magnus
Sounds like a job for umask!

On the unix side check the umask value either in the user's home directory inside the .profile or the /etc/profile that is the default if there is no umask defined in the user's .profile.

Remember, the umask is the opposite of permissions, if you want 644 then the umask is set to typically 022. You cannot set executable permissions with umask.

Try this and get back to me.

  #4  
Old 04-10-2002
doeboy's Avatar
Registered User
 

Join Date: Oct 2001
Location: Here
Posts: 137
Cool

You can set UMASK=nnn in your /etc/defaults/ftpd (On Solaris)
(You must be root to change this file/create it if it doesn't exist).

On HP-UX and AIX you can use the following command and it should change your umask for the session.

site umask <nnn>


Give that a try. Hope it works for you.

Last edited by doeboy; 04-10-2002 at 03:31 PM.
  #5  
Old 04-10-2002
Registered User
 

Join Date: Apr 2002
Location: Italy
Posts: 4
Great!!

It works with Solaris.
You're really great!

Thank you very very much.

Dan

Quote:
Originally posted by doeboy
You can set UMASK=nnn in your /etc/defaults/ftpd (On Solaris)
(You must be root to change this file/create it if it doesn't exist).

On HP-UX and AIX you can use the following command and it should change your umask for the session.

site umask <nnn>


Give that a try. Hope it works for you.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:20 AM.


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

Content Relevant URLs by vBSEO 3.2.0