- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- About the file permission
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
05-05-2005 06:17 PM
05-05-2005 06:17 PM
1. the file and directory owner is user1:edp ,
2. the permission is 644
I want everyone hv permission to overwrite all files and write a new file to it , but I want the file owner and permssion keep unchange , could suggest what can I do ? thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 08:06 PM
05-05-2005 08:06 PM
SolutionFor files which need to be overwritten by everybody set mode with write permissions to all. But /usr/local/bin is generally used for local executables which means you should also provide executable permissions. This means your will have to specify rwx permissions for all users. This I think is not a good practice as only useres who creates file should have right permissions to these and everydody else should have only execute permissions.
Set permission on directory to 777 for other them users in bin group to be able to create files in the directory.
The permissions for new files will of the user:group who creates them and it can not be avoided.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 08:35 PM
05-05-2005 08:35 PM
Re: About the file permission
Why should everyone be able to write files in /usr/local/bin, this is mostly included in your PATH variable, high security risk.
So everyone who logs in can execute everything located in this directory, even a Hacker.
Permissions on files are set based on your umask setting.
Files created by a specific user will always be the owner.
What kind of files you want to put under this directory?
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 08:40 PM
05-05-2005 08:40 PM
Re: About the file permission
I only take the path /usr/local/bin as a example , actually I still not decide which path will this common files will put to , possibly put on /home/user1 path . thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 09:05 PM
05-05-2005 09:05 PM
Re: About the file permission
for file in `find /path -name "*"`
do
chmod 666 $file
done
666 - It can be readable and writable.
But the execution of this script will need proper permission of file owner and group.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 09:20 PM
05-05-2005 09:20 PM
Re: About the file permission
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 09:30 PM
05-05-2005 09:30 PM
Re: About the file permission
I have about 70 users , setacl seems not suit our case , could you have other advise ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 09:33 PM
05-05-2005 09:33 PM
Re: About the file permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 09:34 PM
05-05-2005 09:34 PM
Re: About the file permission
What's your umask set to?
# umask
The umask value is set within /etc/profile.
man umask.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 12:36 AM
05-06-2005 12:36 AM
Re: About the file permission
I can think of only one method, which I even myself find a bit too creative...
Let ftp deliver the files: the restricted version of ftp, which makes use of ftpaccess, allows defining the destination directory and access and overwrite rights for files delivered there.
This assumes that your users deliver the files by ftping them to the server; in this case they would have to use a common ftp-user.
However, perhaps you should reconsider the whole design: is it not a problem not to know when a file is replaced?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 01:17 AM
05-06-2005 01:17 AM
Re: About the file permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2005 06:12 PM
05-08-2005 06:12 PM
Re: About the file permission
Further to my suggestion , is it OK to su to the userid "user1" before copy the file ? as I know , the similiar command like below can su to another user before rcp file , but I try it but it is fail to run at localhost , could suggest is it possible ? thx
rcp file user1@remote_host:/home/user1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2005 06:47 PM
05-08-2005 06:47 PM
Re: About the file permission
In user1 home directory, create a file called .rhosts and add an entry for each user.
$ cat .rhosts
xyz user1
xyz user2
xyz user3
where xyz is the hostname. You can use '+' to allow user to login from any host.
I am not sure if 'su' would work or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2005 09:33 PM
05-08-2005 09:33 PM
Re: About the file permission
I am wonder is there any method that before the user overwrite the file , it will automatically change to another userid ( eg. user1 ) , if so , I think it will totally solve my problem - no need to change file owner and permission , could advise is it possible ? thx