- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Chown Issues - Stumped
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
Discussions
Discussions
Forums
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
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
тАО07-27-2001 12:10 PM
тАО07-27-2001 12:10 PM
I'm in a NIS/NFS environment where I can log into either HP's or Suns. In the HP environment, chown works, but in the Sun environment, it doesn't. Please see details below:
[myname@SUNmachine1]% ls -l
-rwxr-xr-x 1 myname sysadmin 1586 Jun 22 16:11 file3
-rwxr-xr-x 1 myname sysadmin 9 Jul 9 09:48 test.sh
[myname@SUNmachine1]% id
uid=12345(myname) gid=14(sysadmin)
[myname@SUNmachine1]% chown yourname test.sh
chown: test.sh: Not owner
[myname@SUNmachine1]%
[myname@SUNmachine1]% telnet HPmachine1
[myname@HPmachine1]% ls -l
-rwxr-xr-x 1 myname sysadmin 1586 Jun 22 16:11 file3
-rwxr-xr-x 1 myname sysadmin 9 Jul 9 09:48 test.sh
[myname@HPmachine]% chown yourname test.sh
[myname@HPmachine]% ls -l
-rwxr-xr-x 1 myname sysadmin 1586 Jun 22 16:11 file3
-rwxr-xr-x 1 yourname sysadmin 9 Jul 9 09:48 test.sh
[myname@HPmachine]%
Anyone have any suggestions as to why this is?
Any and all help appreciated!!
Pete
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2001 12:53 PM
тАО07-27-2001 12:53 PM
Re: Chown Issues - Stumped
For some reason, the system does not think you are myname?
Try to touch a file in that dir.
touch test1.sh
Is the owner myname or is it another?
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2001 01:26 PM
тАО07-27-2001 01:26 PM
Re: Chown Issues - Stumped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2001 03:50 PM
тАО07-27-2001 03:50 PM
Re: Chown Issues - Stumped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2001 10:42 PM
тАО07-29-2001 10:42 PM
Re: Chown Issues - Stumped
This is a security feature provided by SUN ... the obvious reason is that "no unpriviledged user should be able to give or take ownership".
Hope this clarifies the query.
Suhas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2001 04:11 AM
тАО07-30-2001 04:11 AM
Solutionon Sun(solaris) , when you "man chown" , it prompts this to you !
-=
The operating system has a configuration option
{_POSIX_CHOWN_RESTRICTED}, to restrict ownership changes.
When this option is in effect the owner of the file is
prevented from changing the owner ID of the file. Only the
super-user can arbitrarily change owner IDs whether or not
this option is in effect. To set this configuration option,
include the following line in /etc/system:
set rstchown = 1
To disable this option, include the following line in
/etc/system:
set rstchown = 0
{_POSIX_CHOWN_RESTRICTED} is enabled by default. See sys-
tem(4) and fpathconf(2).
-=-=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2001 05:48 AM
тАО07-30-2001 05:48 AM
Re: Chown Issues - Stumped
Just for info: on HP-UX you can restrict the chown command with "setprivgrp", see man 1m setprivgrp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2001 06:24 AM
тАО07-30-2001 06:24 AM
Re: Chown Issues - Stumped
I learn something everyday!
Pete