- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Permissions when a file is delivered.
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
11-26-2008 10:56 AM
11-26-2008 10:56 AM
There is a server "A" receiving a file from other system "B" and when the user delivers the information to the server "B", the information is left as follows
-rw-rw---- 1 userA system 3465 Nov 26 12:40 Information.txt
I need the information.txt file has the permissions as follows:
-rw-rw-rw-
what doi have to update into the profile to get this one?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 11:12 AM
11-26-2008 11:12 AM
Re: Permissions when a file is delivered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 11:34 AM
11-26-2008 11:34 AM
Re: Permissions when a file is delivered.
>>that is mounted from other server.
Mounted how? Via NFS?
If it is NFS, then the process that creates the file needs to change the file permissions programmatically.
The other option would be to have a cron job periodically do a 'chmod 666 information.txt' to change the permissions.
However, I would question why the file needs to be rw by EVERYONE. This would effectively allow ANY USER to absolutely clobber the data in the file and render it utterly useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 11:54 AM
11-26-2008 11:54 AM
Re: Permissions when a file is delivered.
Yes, it is, via NFS
2.- If it is NFS, then the process that creates the file needs to change the file permissions programmatically.
is not there other way to do that? if i use umask command into profile user id?
2.- The other option would be to have a cron job periodically do a 'chmod 666 information.txt' to change the permissions.
OK ..
3.- However, I would question why the file needs to be rw by EVERYONE. This would effectively allow ANY USER to absolutely clobber the data in the file and render it utterly useless.
It is due there is other application (Tumbleweed) that is listening if there are files or not to be sent, but, if the file has the permissions -rw-rw---- (660) the file can not be listened by the daemon that is listening for files ... the file has to be permissions for strangers due the owner userid of Tumbleweed processes are not in the same group, so, when i changed to 666 or 466 Tumbleweed daemon process could listen and in that moment the file was sent immediatly ....
do you suggest me other thing?
do you know if i use umask userid into the profile of the user (owner of the information) it could work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:05 PM
11-26-2008 12:05 PM
Re: Permissions when a file is delivered.
Yes, typically the umask controls the permission. You would set it to 0 to get 666.
But there would be security issues with other files created. Perhaps you only want to set it to 0 only when you run this application that creates the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:12 PM
11-26-2008 12:12 PM
Re: Permissions when a file is delivered.
=========================================
$ cat /etc/profile | grep umask
umask 022
=========================================
When the file was delivered,the permissions are:
660
if i update the .profile only of this user (userA), could i get 666 ? what numbers do i have to use after umask command? umask 000?
please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:17 PM
11-26-2008 12:17 PM
Re: Permissions when a file is delivered.
>>(userA), could i get 666 ?
Maybe. Does someone actually login as this user to run the process that creates this file?
>>what numbers do i have to use after umask
>>command? umask 000?
Yes. 'umask 000' or 'umask 0' will give you the permissions you say you require.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:21 PM
11-26-2008 12:21 PM
Re: Permissions when a file is delivered.
listing the file to determine the owner will point you in the right direction i suppose. and that would be the user on serverA.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:22 PM
11-26-2008 12:22 PM
Re: Permissions when a file is delivered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 12:41 PM
11-26-2008 12:41 PM
Re: Permissions when a file is delivered.
have a nice day.