- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ownership changing from sftp session
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
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
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
тАО01-08-2009 07:06 AM
тАО01-08-2009 07:06 AM
Ownership changing from sftp session
I am using sftp to transfer files in hp-ux server(11.23). I am able to change file permisson with out any issues. but when I am trying to change ownership with "chown" I am getting the below error.
Error:
sftp> chown kandurir:users PIDB_Scripts.txt
You must supply a numeric argument to the chown command.
sftp>
can you please help me some one to resolve this issue. i want change onwership from sftp session only for remote files.
Thanks,
Balaji.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2009 07:12 AM
тАО01-08-2009 07:12 AM
Re: Ownership changing from sftp session
I think you may need to give userid:groupid instead of names.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2009 07:17 AM
тАО01-08-2009 07:17 AM
Re: Ownership changing from sftp session
Suggest scp -p for file transfer to preserve permissions. Or using an actual shell script on the target to handle perms.
Password free access might help.
http://www.hpux.ws/?p=10
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2009 07:19 AM
тАО01-08-2009 07:19 AM
Re: Ownership changing from sftp session
You need to change ownership with chown command and group ownership with chgrp command
#chown userid
#chgrp grpid
Also you should have the permission to change ownerships..
Hope this helps.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2009 07:51 AM
тАО01-08-2009 07:51 AM
Re: Ownership changing from sftp session
other OS?) stores file ownership and group
as numbers. It also has ways of relating
these numbers to names (/etc/passwd,
/etc/group, NIS, ...).
There's no good reason to expect the
name-to-number mapping on a remote system to
agree with that on the local system, so,
apparently, "sftp> chown" is trying to save
you from making what could be a big mistake.