How to configure a hidden samba root share

Ubuntu 8.04

Substitute your Ubuntu account name where my_user appears and your Samba/CIFS/Windows workgroup name where my_workgroup appears. WARNING: This gives my_user root access to any and all files on the machine, enabling remote administration without using nano or vi.

  1. sudo apt-get install samba
  2. sudo smbpasswd -a my_user
    1. sudo editor /etc/samba/smb.conf
        1. Change the line workgroup = my_workgroup
        2. Change the line wins support = yes
        3. Change the line security = user
        4. Add the following block further down the file:
          1. [root] path = / valid users = my_user read list = my_user write list = my_user force user = root acl check permissions = No only user = Yes username = my_user hide dot files = No browseable = No
  3. sudo /etc/init.d/samba restart