![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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:
|
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
Great!!
It works with Solaris.
You're really great! Thank you very very much. Dan Quote:
|
|||
| Google The UNIX and Linux Forums |