LAUTIER Sabrina
2002-Jun-14 06:47 UTC
[Samba] groupname gid with blank char in file /etc/fstab
Hi ! toto is a win2k domain user member of group 'Domain Users'. I've added the following line to my /etc/fstab file for the win2k share to be mounted at system boot: //DERVER/SHARE /mnt/smb smbfs credentials=/home/toto/.smbpw,uid=toto, gid='Domain users',fmask=664,dmask=775 0 0 But the mount command failed with error: | [mntent]: line 9 in /etc/fstab is bad | mount: can't find /mnt/smb in /etc/fstab or /etc/mtab This because the groupname gid contains blank char, ' or ". It wokfs fine if I replace 'Domain Users' wih 10000 (toto numeric gid). Any idea of how to use username/groupname uid/gid with blank char file /etc/fstab ? Thanks. Sabrina --------------------------------------------- Powered by Alinto (http://www.alinto.net) for lavache.com (http://www.lavacheautomatique.com)
Urban Widmark
2002-Jun-14 11:03 UTC
[Samba] groupname gid with blank char in file /etc/fstab
On Fri, 14 Jun 2002, LAUTIER Sabrina wrote:> This because the groupname gid contains blank char, ' or ". > It wokfs fine if I replace 'Domain Users' wih 10000 (toto numeric > gid). > > Any idea of how to use username/groupname uid/gid with blank char file > /etc/fstab ?The problem lies in mount. You'll probably get better replies from the mount maintainer or if you report it as a bug to the linux distribution you use (eg https://bugzilla.redhat.com/bugzilla/index.cgi) That '' would work as an escape is unlikely. You could try \ but I don't think that will work either. /Urban