在使用smbmount的时候指定uid或者gid参数就能用此用户的身份smbmount,举例如下:
smbmount //test/d /mnt/d -o uid=grind
这样用户grind就能往/mnt/d里面写入。