init process
how to set permissions when copy a file to a ntfs partition?
|
What does that have to do with the init process?
You can't set permissions on ntfs beacuse it doesn't support those file attributes. You may be able to set the permissions when you copy the file and perhaps have them respected at the moment, but the ownerships and permissions will not 'stick' and once the volume is unmounted and remounted the permissions will be gone. You can use the 'umask' if the volume is mounted in fstab in order to have some control over access. |
Quote:
I want set permission at the time of booting. thats why I want make it part of init process. ntfs-3g $MNTPRMS -o silent,umask=0,no_def_opts,allow_other 2>/dev/null I want to know description of above command. |
You need to put those into your /etc/fstab file. Some mount options will only work from the fstab and will do nothing if given from the command line. You should read 'man fstab' and 'man mount' for further info on which mount options are valid with a particular file system and whether they atke effect if given from the command-line or only from fstab.
If you want to try placing the command in some other part of the boot-up process, then the question becomes distro-specific as not all distros handle the init scripts the same way. In Slackware you could put the command in a file called /etc/rc.d/rc.local, but other distros do this significantly different. |
All times are GMT -5. The time now is 07:35 AM. |