How to mount filesystem with correct user locally for a mountpoint
Code:
Hi Folks, |
can some one please help .
|
unsure of the details pertaining to fstab, its proper flags, or how it interacts with virtual machines, but a hackaound may be to just write a one liner with mount and place it in a startup script to be run with each reboot
Code:
sudo mount -o rw,gid=wdgrp,uid=wdadmin,dmask=022,fmask=055 /dev/mapper/vg_host1-lv_wd_admin /opt/admin/install |
even i got the idea to add small script but not sure in which script i need to add this details (or) how to make my script run after the reboot (this should happen before my application starts)
Appreciate if you can give me some tips |
/etc/profile
you could try..?
/etc/profile The systemwide initialization file, executed for login shells it really depends on how your system is set up, search for some literature on initialization files pertaining to your setup, eg. distro, desktop environment, shell et al |
maddyfreaks, this is a volunteer forum and today is a weekend day for many persons.
Please relax and give persons a reasonable amount of time to see your post, decide that they can help, and frame a reply. |
chown -R wdadmin:wdgrp /opt/admin/install ---> Please set ownership and group for that mounted directory and try rebooting.
I am really sorry If I am not given the correct answer,please let me know if I am wrong. Thanks, Kathirvel.S |
All times are GMT -5. The time now is 11:43 PM. |