Linux tip, Fedora tip / howto: automatic mounting of samba drives during boot

 
Note that these tips are mostly outdated


back to notes and tips index

Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.

automatic mounting of samba drives during boot

  • make sure your /usr/bin/smbmnt is suid root:
    as root, run chmod +s /usr/bin/smbmnt
  • (as root) for each mount, add a line to your /etc/rc.d/rc.local (newfs is the name of the Samba server, for cs write the name of your workgroup):
    /usr/bin/smbmount //newfs/<user id> <mount point> -o username=<user id>,workgroup=cs,password=<password>,uid=<user id>,gid=<group id>
  • for example, I created a mount point (directory) /u/min on my local box (make sure the directory is owned by you)
  • you can find out your uid and gid by typing id on one of the public machines
  • important: make sure rc.local is owned by root, and run chmod 700 rc.local (you don't want any other user to read that file, as it has your password in plain text)


← back to notes and tips index
Please do not copy the text of this tip (© Patrick Min) to your web site.