Visit Our UNIX and Linux User Community


Ftp permission 644


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ftp permission 644
# 1  
Old 04-10-2002
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.
# 2  
Old 04-10-2002
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.

Smilie
# 3  
Old 04-10-2002
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.

Smilie
# 4  
Old 04-10-2002
Tools

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 08:31 PM..
# 5  
Old 04-10-2002
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.
Smilie Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #660
Difficulty: Medium
DOS uses a filesystem which supports 9.3 filenames: 9 characters for the filename and 3 characters for the extension.
True or False?

9 More Discussions You Might Find Interesting

1. AIX

How to create all files generated in a directory with 644 permissions?

Hi, We are using AIX machines. How to create all files generated in a directory with 644 permissions automatically. Regards, Suresh (11 Replies)
Discussion started by: suresh3566
11 Replies

2. Shell Programming and Scripting

override protection 644 (yes/no)?

Hi pls help me out to short out this problem rm PAB113_011.out rm: PAB113_011.out: override protection 644 (yes/no)? n If i give y it remove the file. But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (9 Replies)
Discussion started by: sri_aue
9 Replies

3. Shell Programming and Scripting

begin 644 in received message sent with sendmail

I send an attachment 123.pdf using the below script:- << script content >> #!/usr/bin/ksh /usr/lib/sendmail -C sendmail.cf abc@gmail.com << END Subject: HELLO `uuencode 123.pdf 123.pdf` END However, the message I got in gmail look like:- begin 644 123.pdf ... garbage ... ... many... (4 Replies)
Discussion started by: pok.fung
4 Replies

4. Shell Programming and Scripting

FTP Files should get full permission

Hi All, Could any one please help me in performing the following? We have the following folder: /home/test/proj1 /home/test/proj2 /home/test/proj3 Users from different country places files in this folder using FTP (These users uses different flavors of FTP tools). Our... (1 Reply)
Discussion started by: vfrg
1 Replies

5. UNIX for Dummies Questions & Answers

SCO 5.0.7 Cron creates files with 600, need 644

Hi, I've searched and read, and searched and read some more; but I'm still not connecting the dots or understanding what I need to change. I have a script that creates a file. If I run it as root, the file gets created with 644 permissions like I want. That seems to make sense (at least I... (2 Replies)
Discussion started by: 65bit
2 Replies

6. UNIX for Dummies Questions & Answers

ftp transfer permission denied

I am using a Cobalt Raq4 with Apache web server. I am trying to set the intermediate SSL certificate. I have edited httpd.conf and have created the intermediate SSL certificate text file. However when I try to upload the text file via ftp I get a "Permission denied" message. I am the server... (1 Reply)
Discussion started by: dennisheazle
1 Replies

7. Shell Programming and Scripting

changing permission using FTP

Dear all, i want to change file permision of remote dir using FTP. is that possible? what i'm doing is i'm simply doing chmod 777 filename after establishing the connection with remote server using ftp... but the result showing is 550 SITE CHMOD command failed. can any body plz help?... (3 Replies)
Discussion started by: panknil
3 Replies

8. AIX

FTP File Permission

Hi Guys, I need help on how to configure file permission to be set to 755 whenever user ftp the files from their notebook to the AIX server. Currently when the user ftp the files, the default permission is 640. Please help me to vi the required files. Thankx RaYbAkH (1 Reply)
Discussion started by: raybakh
1 Replies

9. UNIX for Dummies Questions & Answers

file permission retention via ftp

Working out of AIX 4.3's . have machine (a) and machine (b) umask on both machines is 'umask 022'. as user root (these are trivial machines hence dummies like me have root access) when i Ftp files from a to b , why is it that I loose the original file permissions. After the ftp I have to chmod... (1 Reply)
Discussion started by: buRst
1 Replies

Featured Tech Videos