- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File Access Permissions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:06 AM
04-29-2004 01:06 AM
I have an issue which needs some help. I have a user on a box, who needs to ftp files from a particular directory to another server. Say this user is A.
There is another user B who owns these said files.
Both users A and B belong to a group dba.
The problem is that the files created have only rw permissions for the OWNER ie B. Group dba does not have READ access to these files.
So how do we ensure that User A can read these files to ftp ?
Please help. Thanks in advance
Rgds
Pat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:13 AM
04-29-2004 01:13 AM
Re: File Access Permissions
1) Have usera log in to that machine as userb -- probably not good security-wise
2) Make the files group readable since both users are in the dba group -- chmod g+r filename
3) Make the files world readable -- chmod o+r filename -- probably not a good option security wise either.
I'd go for option 2 if at all possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:13 AM
04-29-2004 01:13 AM
Re: File Access Permissions
thanks
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:15 AM
04-29-2004 01:15 AM
Re: File Access Permissions
The group doesn't matter as A and B are on different server.
Can A log as B on the remote system ? If so, B privilege will apply using ftp :
ftp -n << EOF
user A A_password
cd path
mget filenames
EOF
Have you consider using rcp :
On remote host, create a file in the B home directory like this
# cat > .rhosts
A_hostname A
^D
Logged as A, type :
rcp B_hostname:path/filename A_hostname:path
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:24 AM
04-29-2004 01:24 AM
Re: File Access Permissions
Thats probably the easiest, and most secure way.
You could make the umask 037 (rwxr-----) for UserB.
so that the files are created with the correct permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:31 AM
04-29-2004 01:31 AM
Re: File Access Permissions
Change the umask for user-A so that he creates all files with a read to the group
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:36 AM
04-29-2004 01:36 AM
Re: File Access Permissions
If these users need continual access to new files that will continue to be created by each other, Marvin had a good suggestion to set the umask so that the group permissions will be populated correctly at the time the files are created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 02:12 AM
04-29-2004 02:12 AM
Re: File Access Permissions
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 007
In this case, all files sent to this server will have rw permission for both group and user. This is of course true for all files and directories created at that machine. However, a better solution is to use chmod after transferring the files. This is of course dependent on your local version of ftp. HP-UX and Linux and many other Unices have chmod as an ftp command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:12 AM
04-29-2004 04:12 AM
Re: File Access Permissions
this thread has some stuff about the umask-ftp aspect:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=278349
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:23 AM
04-29-2004 04:23 AM
Re: File Access Permissions
If it is not a problem, let user B create the files with a umash 036. You can add "umask 036" in user B profile.
Remember if you do this, all the files created by userB will have read permission for the group.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:29 AM
04-29-2004 04:29 AM
Re: File Access Permissions
(Effectively ftp will be run as root by usera)
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 07:43 AM
04-29-2004 07:43 AM
Re: File Access Permissions
for so much super advice. I have a question. forgive me, for asking it as i am a novice new to HPUX. my question is "CAN ACL's HELP US out HERE? "
Points assigned. many THANX to all my friends.
regards
pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 07:53 AM
04-29-2004 07:53 AM
Solutionman 5 acl
man aclv
you will probably not want to play with them. And certain versions of HP-UX and VxFS filesystems do not support ACLs. They don't work over NFS.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 11:18 PM
04-29-2004 11:18 PM
Re: File Access Permissions
rgds
pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 12:43 AM
04-30-2004 12:43 AM
Re: File Access Permissions
umask 000 ; touch f000
umask 022 ; touch f022
umask 033 ; touch f033
umask 777 ; touch f777
umask 000 ; mkdir d000
umask 022 ; mkdir d022
umask 033 ; mkdir d033
umask 777 ; mkdir d777
ls -ld f??? d???
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 08:22 AM
04-30-2004 08:22 AM
Re: File Access Permissions
Rgds
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:37 PM
05-18-2004 03:37 PM
Re: File Access Permissions
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:05 PM
05-18-2004 07:05 PM
Re: File Access Permissions
I apologize for this mistake. It was totally unintended. I think i am having problems with my browser. Please accept my apologies. This forum is priceless for me. Will take extra care in the future. Will apply the points right away.
thanks & Regards
Pat