Operating System - Tru64 Unix
1753747 Members
5110 Online
108799 Solutions
New Discussion юеВ

Re: Can`t mount to /mnt in account other than root...(not owner)

 
MNMC
Regular Advisor

Can`t mount to /mnt in account other than root...(not owner)


In tru64 v 4.0 d, I have get NFS file sysetm form windows, I can mount it in root account:

mount -t nfs windowshost:/sharedfolder /img4 (or /mnt)

/mnt, /img4, is folders owned by root.

the other user "user", it`s home is " /img0/user " , can`t mount it to /mnt or /img4 , appear a massege " /img4 or /mnt not owner ", but "user" can mount that NFS to any folder inside its home such as " /img0/user/img4 ".

note: /img0 is a second parition in the same disk.

but "/img0/user/img4" path isn`t useful for my work, I need nessesary to make "user" mount that NFS to /img4 , without using "su".

I try to make write permission for " /img4 " folder to all users, but still the same problem.

what should I do?
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: Can`t mount to /mnt in account other than root...(not owner)

> what should I do?

man mount

To use the mount and unmount commands, you must be the root user. An
exception to this restriction is made when NFS file systems have been
explicitly exported to allow nonroot users to mount the file system. Refer
to the -n option of mountd(8) for more information.


> what should I do?

Show actual commands with their actual
output?

> I try to make write permission for
> " /img4 " folder to all users, [...]

How?

ls -ld /img4
ls -ld /mnt

I doubt that a normal user can mount anything
on a mount point (directory) which he does
not own (or have write permission for).

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V40F_HTML/APS2SDTE/TITLE.HTM
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V40F_HTML/APS2SDTE/NFSCHPXX.HTM
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V40F_HTML/APS2SDTE/NFSCHPXX.HTM#auto-and-nfs
MNMC
Regular Advisor

Re: Can`t mount to /mnt in account other than root...(not owner)



I have found "chown" - Change the owner and/or group of a file or folder. You must be root to use this command.

http://www.westwind.com/reference/OS-X/commandline/files-folders.html

I well try it and tell you.
MNMC
Regular Advisor

Re: Can`t mount to /mnt in account other than root...(not owner)


I have made:

choun "user" /img4

this have solved the prblem, it`s change the owner of /img4 to be "user", and I have made the mounting without "su".