How to mount a Windows shared directory and have mount point be owned by nonroot user
I'd like to mount a Windows shared directory in a nonroot user's home directory on a Red Hat 5.3 linux machine.
I'll need to have the mounted directory owner and group be for a specific linux user account, let's say user jdoe, the mount point cannot be owned by the root account. If I use the following /etc/fstab line:
//192.168.100.100/share /home/jdoe/winserver guest 0 0
The share will be viewable but /home/jdoe/winserver will have root:root ownership and I need it to have jdoe:jdoe ownership. It's not enough to have 777 permissions on that mounted directory, I actually need it to be owned by jdoe. Why? Long story but it has to be that way trust me. Does anyone know how I can do that? Thanks!
Last edited by Arodef; 09-13-2009 at 11:40 PM.
|