- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file ownership change after running script
Operating System - HP-UX
1748213
Members
3730
Online
108759
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-08-2011 12:49 AM
01-08-2011 12:49 AM
file ownership change after running script
hi,
i wrote shell script owned and run by root ..
this shell script contains commands to be run by root (commands require root privs) and commands to be run by user1 (as user1 is owner and these commands must run by him)..
inside the script i use "su - user1" to run user1 commands.
it works fine, but i found some files that owned by user1 has changed to be owned by root. it took me while to fix these files and search for all changes since these commands involve many files and directories..
why this happen? and can i avoid it next time i run this script?
thank you
i wrote shell script owned and run by root ..
this shell script contains commands to be run by root (commands require root privs) and commands to be run by user1 (as user1 is owner and these commands must run by him)..
inside the script i use "su - user1" to run user1 commands.
it works fine, but i found some files that owned by user1 has changed to be owned by root. it took me while to fix these files and search for all changes since these commands involve many files and directories..
why this happen? and can i avoid it next time i run this script?
thank you
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2011 06:41 AM
01-08-2011 06:41 AM
Re: file ownership change after running script
> why this happen?
How should I know? How could anyone else
know?
What's in your "shell script"? Who owns what
in your file system(s)? Which "some files",
created where, how? My psychic powers are
too weak to show me what you're doing, or
what happens when you do it.
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
How should I know? How could anyone else
know?
What's in your "shell script"? Who owns what
in your file system(s)? Which "some files",
created where, how? My psychic powers are
too weak to show me what you're doing, or
what happens when you do it.
As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP