Monday, April 24, 2006

Using smbmount in FC5

From FC5, the smbmount is replaced by mount.cifs to make it consistent with the UNIX's mount command. Therefore, the command line to mount a SMB service is as followed:

# sudo /sbin/mount.cifs "$SERVICE" "$HOME/mnt/$COMP/$SHARE" -o username=$SMBUSER,password=$PASS,uid=$USER,gid=$,umask=0002

The command can be put in a bash script to save typing effort, and all the variables are command line's parameters.

0 Comments:

Post a Comment

<< Home