Operating System - HP-UX
1819689 Members
3419 Online
109605 Solutions
New Discussion юеВ

finding mount points owners

 
SOLVED
Go to solution
andi_1
Frequent Advisor

finding mount points owners

Hi,

How can I find out ownerships of the mount points on a any system?

Thank you.
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: finding mount points owners


for nfs mounts:

showmount -a
and
showmount -d

for local mounts

mount


live free or die
harry
Live Free or Die
A. Clay Stephenson
Acclaimed Contributor

Re: finding mount points owners

Umount the filesystem and then do an ls -l on the mountpoint itself.
If it ain't broke, I can fix that.
andi_1
Frequent Advisor

Re: finding mount points owners

Hi,

I don't think mount command will work. It doesn't say what group and owner does specific mount belongs to.

Sanjay_6
Honored Contributor

Re: finding mount points owners

Hi,

There is no command to find the owner and group of a mount point. Try the simplest way, first do a "bdf" to find the mount point and then do a "ll" to check for the owner and group for the mount point.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: finding mount points owners

Hi,

The ownership/permissions can be found by 'ls -al' on the mount point.

If you have ACL's then use 'lsacl' command.

While mounting, you are not assigning any permissions there, it is assigned just like you assign permissions to a directory.

HTH,
Shiju
Life is a promise, fulfill it!
Roger Baptiste
Honored Contributor
Solution

Re: finding mount points owners

hi,

do a bdf | grep -v Filesystem | awk '{print $6}'

on the output which is the mountpoint, do a ll -d That tells the owners/permissions.

Ofcourse, this is assumign that the filesystem is mounted!

-raj
Take it easy.
Miguel Munoz
Trusted Contributor

Re: finding mount points owners

Not sure about the reason for the question, but also be aware of the fact that mounted filesystems have permissions as well as the mount points themselves. So my recommendation is to use some scheme to get a listing of the filesystems (maybe use the bdf | grep | awk) method mention earlier in this thread and do an ls -ld on that listing. Then when you have a chance to do this with the filesystems unmounted, do the same.

I have seen cases where the permissions were different and everyone could read and write to a mount point when the filesystem was not mounted and mysteriously (/) would fill up and no one could find the cause. HINT: after the ls -ld with the filesystems unmountd a du -ks on the same mount points might be in order.

Good Luck,

Miguel