ftp file with full permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ftp file with full permissions
# 1  
Old 12-30-2002
ftp file with full permissions

I am running sco openserver 5.0.6 and I was wondering if I could ftp files to one of my other servers and that file have full permissions set automatically on the new server.

I have searched the internet and manned chmod chown and ftp but they only seem to talk about giving the permissions after the file is already on the new server.

Thanks,

Stufine
# 2  
Old 12-30-2002
i think you need to set the umask for the user taht you are ftp'ing with. the umask defines the default file permissions for files created by that user. this applies to files that are copied via ftp.
# 3  
Old 12-31-2002
Thanks I will try that.
Sounds like it will work!!!
# 4  
Old 12-31-2002
BLAST!!!
I just found out they are ftping as root. Which is ok because they are on an internal newtwork without being connected to the internet. Will this make a difference in your suggestion.


Can I set the umask in /etc/shadow or is it somewhere else??
# 5  
Old 12-31-2002
Actually, the mask for the user makes no difference.

By typing in "umask ftp" and using our search function, I found:
this thread

I will add that with some ftpd programs there is an option for the default umask on the command line.
# 6  
Old 12-31-2002
i would reccomend against allowing anyone to use the root account. also, root ftp access should be disabled, aswell as root telnet access, ssh access, and any other access by root except directly from the console, and 'su', thats my opinion though. you should create a user for this purpose. and i just saw perderabos post and the thread taht he linked to solves your problem.
# 7  
Old 12-31-2002
Yeah!!

Works great. I will see why they are wanting to ftp as root and advise them to change!


Thanks for the help!!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

List full File system permissions

I am attempting to get a baseline of deployed RHEL 6.5 servers and need to produce a full filesystem permission settings list.....but I forgot the bloody command and am racking my brain and now have a migraine. I just need a simple list starting at "/" right down the tree, listing the folder,... (3 Replies)
Discussion started by: strykergli250hp
3 Replies

2. UNIX for Dummies Questions & Answers

getting the full permissions of a file

Hi I was wondering if it would be possible to get the full octal permissions of a file by using something in the stat() system call. Can this be done without going through all of the seperate permissions (e.g. read for user, write for user .... etc.)? also how can this octal permission be changed... (5 Replies)
Discussion started by: bjhum33
5 Replies

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

4. UNIX for Dummies Questions & Answers

permissions on ftp...

hi, how can I see permissions through ftp connection ? I can't see them using "ls -l" as in the local system.. thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

5. AIX

FTP file permissions

Hi all, I am using ftp command to transfer a file from one AIX5.3 box to different box with the same OS level. Is there a way I could change the permissions on the file once its transferred, as I am automating the process but the file permissions on the target does not allow other users to access... (2 Replies)
Discussion started by: sam_78_nyc
2 Replies

6. UNIX for Dummies Questions & Answers

FTP Permissions

Hi Guys, I am trying to grant FTP acccess to my server for a WebDesigner to be able to upload live and see how it looks online. I created a new user (WebDes:tomcatUsers) and created his home dir as /var/lib/tomcat5/webapps/uPhoto/ and then made sure he CHROOT's to his home dir so he only... (1 Reply)
Discussion started by: boarderstu
1 Replies

7. UNIX for Advanced & Expert Users

How to retain file permissions during FTP on Solaris 5.9 ?

Hi All, I am trying to ftp a file : -rw-rw-rw- 1 oraclepbdw dba filename.txt from Machine A ( where umask is 022) to Machine B (umask 022) but the file changes to -rw-rw-r-- 1 ftpamle3 ftaml filename.txt Dur some constraints the group of the users on either side... (3 Replies)
Discussion started by: gauravsachan
3 Replies

8. UNIX for Dummies Questions & Answers

OpenBSD Ftp permissions problems - help!!

Hello, Ok I have a couple of little problems that I can't for the life of me work out how to solve. I wasn't involved in setting the server up, I've just "inherited" the support for it. I've done my best to be a good little newbie, researched articles, tried things out and managed to only get... (1 Reply)
Discussion started by: Andy68man
1 Replies

9. UNIX for Advanced & Expert Users

return code on ftp if filesystem full??

Does anyone know what the return code will be if an ftp fails because the /var/tmp filesystem is full? AIX 4.3 (1 Reply)
Discussion started by: lawadm1
1 Replies

10. UNIX for Dummies Questions & Answers

ftp permissions error

HI, I am not really even a newbie I'm just posing as one until our sys admin gets back from vacation. I am getting errors downloading certain files from an NT Server onto our inhouse Unix fileserver. Certain files always return errors when downloading to their proper directory.... (2 Replies)
Discussion started by: newbie10
2 Replies
Login or Register to Ask a Question