- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk Usage using du
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-12-2002 12:16 AM
05-12-2002 12:16 AM
I tried doing the following:
$du -k -s /
It produced the following messages for all directories under /:
du: cannot change to dir /tmp/image/ :Permission denied
Also, when I did another du on another filesystem, i.e. $du -k -s /fs36/nwd.srtl.cr, it produced:
du: cannot open
du: bad status
Could someone tell me what is the reason to all these error messages and how I could rectify it?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 12:21 AM
05-12-2002 12:21 AM
Re: Disk Usage using du
Are you 'root' user whilst performing the actions ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 12:28 AM
05-12-2002 12:28 AM
Re: Disk Usage using du
No, I'm not logged in as root whilst performing this action. I'm able to perform a df on mentioned filesystem.
Do I need to be a root user to execute du? I'm not logged into a fileserver.
I've managed to execute du on other filesystems on different hosts before.
Could you please explain?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 12:42 AM
05-12-2002 12:42 AM
SolutionI've just tried it on of my servers as my standard ID and root
I received errors when using my ID similar to yours - None whilst root user
It will depend on the permissions of the files in the directory - if the user is unable to read the file it will not be able to calculate the size
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 12:46 AM
05-12-2002 12:46 AM
Re: Disk Usage using du
May the permission now are
drwx------
dr-xr--r--
In the first case the owner has read,write and execute permissions.The group and others have no permissions.
In the second case the owner has read and execute permissions.The group has read permissions and others have read permissions.
If you are the owner for that directory
drwx------ is enough.
If you are not the owner
then
drwxr-xr-x permissions is neccessary.
change the permissions of that directory with
read and execute permissions for everyone,you can do a du-sk.
Thanks