Visit Our UNIX and Linux User Community

FTP user files permissions problems!!!

Thread Tools Search this Thread
Operating Systems HP-UX FTP user files permissions problems!!!
# 1  
Old 04-06-2005
FTP user files permissions problems!!!


I have a problem with my ftp accounts whereby if any external ftp party connects to our server and puts any file in a directory on our server. The file permissons are always -rw-r----- and no read for others.

I have adjusted the ftp user .profile to include 'umask 022' but this only works if I 'su' on the server itself and create files with permissions levels

For any connections from remote site login as the same user I have su'ed as the permissions always default to -rw-r----- . Any way I can make a change so that permissions are always -rw-r--r-- for any ftp remote user connections.

Gurus please assist.

# 2  
Old 04-06-2005
# 3  
Old 04-07-2005
FTP file access

Hi Perderabo,

I'm still abit confused for HP-UX. The fix is for solaris from what I understand and HP-UX does not have the /etc/defaults folder. I have also tried to adjust the umask value in .profile file in the users home directory but this still doesn't work.

Any ideas for Hp-UX in particular?

# 4  
Old 04-07-2005
Well, what about the other stuff in that thread? First, if you follow the link in that thread, you will read about the "site umask" command which will work. And did you notice my comment "I will add that with some ftpd programs there is an option for the default umask on the command line."? Looking at the HP-UX ftpd man page, and sure enough, there it is, "-u umask". While you're on that man page, be sure to notice
The following non-standard or HP-UX specific commands are supported by the SITE command:


Change umask. (e.g., SITE UMASK 002)

Previous Thread | Next Thread
Test Your Knowledge in Computers #758
Difficulty: Easy
The Amiga was a family of personal computers introduced by Microsoft in 1985.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Command to change add permissions for a new user to all files in all subfolders and folders

Hi there! I'm new to Unix and haven't done command line stuff since MS-Dos and Turbo Pascal (hah!), I would love some help figuring out this basic command (what I assume is basic). I'd like to add a User to the permissions of all files in a folder and all files in all subfolders, as well... (9 Replies)
Discussion started by: Janjbrt
9 Replies

2. Shell Programming and Scripting

How to get user to choose files to be copied to FTP server?

Hey all. I'm writing a script to automatically login to a router, change directories to where crashfiles are located, then listing all files in that directory. This is where I'm at so far and wish to have some user interaction to choose the files. What I am trying to do is list the files and get... (1 Reply)
Discussion started by: Gouda
1 Replies

3. Solaris

How do files transferred via ftp or sftp gets thier permissions at destination?

We have umask defined under /etc/.login as 022. I have my user specific umask defined in /userhome/.login as 002. I understand ftp will not execute anything at destination, it simply transfers files. But it seem to be using 022 as umask for the files transferred. How does ftp knows what umask... (4 Replies)
Discussion started by: kchinnam
4 Replies

4. Linux

Default user:group permissions while creating files and directories

Hi, I am working on setup a environment where only a specific user can upload the builds on htdocs of apache. Now i want that a specific user can copy the builds on htdocs folder. I created a group "deploy" and assign user1 and user2 to this group. On Apache side i mentioned User=deploy... (3 Replies)
Discussion started by: sunnysthakur
3 Replies

5. Cybersecurity

Permissions for Backup user to rsync files

I've got a new MythTV box at home and figured it would be a great opportunity to use it to do daily mirrors of my mysqlbackup directory (let's say /mysqlbackup/backups) and my website at /usr/local/apache/htdocs and below. I figured it would be a best practice NOT to use a root login but to... (0 Replies)
Discussion started by: dheian
0 Replies

6. Solaris

add a ftp user with read and write permissions on a directory

hi all how I can create an ftp user in solaris 10 and have read and write permission on a directory. Thanks. (1 Reply)
Discussion started by: luisfja
1 Replies

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

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

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

10. HP-UX

Insufficient permissions on ftp'ed files from WIN2K to HP-UX

We have an application running on Win2K and this application ftp files to HP-UX using ftpdc as user id. The files are created in HP-UX with following permissions: -rw-r----- 1 ftpdc users 968321 Apr 12 22:57 aaaa.txt There is a job that runs on HP-UX trying to modify this file using the... (7 Replies)
Discussion started by: Anamika
7 Replies

Featured Tech Videos