- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/mnttab: permission denied
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
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
07-03-2005 08:10 PM
07-03-2005 08:10 PM
When i run command "bdf" as user, i got an error:
$ bdf
bdf: Cannot open /etc/mnttab: Permission denied
but, if we issued this command as root, output for bdf comnad is run normally.
someone can help me, please !
$ uname -a
HP-UX hqhpux36 B.11.00 A 9000/800 1193404627 two-user license
$ ll /etc/mnttab
-rw-r--r-- 1 root root 753 Jun 29 16:11 /etc/mnttab
$ ll /usr/bin/bdf
-r-xr-xr-x 1 root bin 28672 Mar 21 2003 /usr/bin/bdf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:12 PM
07-03-2005 08:12 PM
Re: /etc/mnttab: permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:16 PM
07-03-2005 08:16 PM
Re: /etc/mnttab: permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:21 PM
07-03-2005 08:21 PM
Re: /etc/mnttab: permission denied
$ ll | grep etc
dr-xr-xr-x 25 bin bin 6144 Jul 4 10:14 etc
I can read /etc/mnttab file:
$ more /etc/mnttab
/dev/vg00/lvol3 / vxfs log 0 1 1120061449
/dev/vg00/lvol1 /stand hfs defaults 0 0 1120061450
/dev/vg00/lvol8 /var vxfs delaylog,nodatainlog 0 0 1120061467
/dev/vg00/lvol7 /usr vxfs delaylog,nodatainlog 0 0 1120061467
/dev/vg00/lvol6 /users/home vxfs delaylog,nodatainlog 0 0 1120061467
/dev/vg00/lvol5 /tmp vxfs delaylog,nodatainlog 0 0 1120061467
/dev/vg00/lvol07 /oracle vxfs delaylog,nodatainlog 0 0 1120061468
/dev/vg00/lvol4 /opt vxfs delaylog,nodatainlog 0 0 1120061468
/dev/vg00/appstemp /oasis/temp vxfs delaylog,nodatainlog 0 0 1120061468
/dev/vg00/lvaudit /auditlog vxfs delaylog,nodatainlog 0 0 1120061468
/dev/vg02/lvol1 /appstest vxfs delaylog,nodatainlog 0 0 1120061468
/dev/vg02/lvol2 /apps11.5.9 vxfs delaylog,nodatainlog 0 0 1120061468
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:39 PM
07-03-2005 08:39 PM
Re: /etc/mnttab: permission denied
when i changed to 4555 /usr/bin/bdf,
problem is resolved.
$ ls -ld /usr/bin/bdf
-r-sr-xr-x 1 root bin 28672 Mar 21 2003 /usr/bin/bdf
but why i must do it ??in another server, permission for /usr/bin/bdf, only 555.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 08:57 PM
07-03-2005 08:57 PM
Re: /etc/mnttab: permission denied
I am also eagerly waiting to know what is this 4555
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:09 PM
07-03-2005 09:09 PM
Re: /etc/mnttab: permission denied
bdf can work without s-bit as well. Check whether /etc/mnttab with
fuser -u /etc/mnttab
Usually bdf itself locks the file. May be on one of the servers the file is locked by a mistake.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:15 PM
07-03-2005 09:15 PM
Re: /etc/mnttab: permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:26 PM
07-03-2005 09:26 PM
Re: /etc/mnttab: permission denied
4xxx means setting UID on the file. Which means that whoever is authorised to execute the file can excute this but this will be always executed as the user who is owner of the file so here root. This makes sense as the /etc/mnttab could have locked by some user.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:36 PM
07-03-2005 09:36 PM
Re: /etc/mnttab: permission denied
$ chmod 4555 /usr/bin/bdf
Once you execute chmod you can see that first 'x' in permission string gets changed to 's'. You must run the baove command as root.
Hope this helps.
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:37 PM
07-03-2005 09:37 PM
Re: /etc/mnttab: permission denied
now i am understand.
many thanks,
yuli