cockpit-file-sharing icon indicating copy to clipboard operation
cockpit-file-sharing copied to clipboard

Hide home-folder

Open AutoMates-Joep opened this issue 10 months ago • 2 comments

Is it possible to hide the users home-folder? I can see all my shares but also my home-folder which doesn;t exist. I would like to hide or remove that home share if possible.

AutoMates-Joep avatar Apr 25 '24 07:04 AutoMates-Joep

Is it possible to hide the users home-folder? I can see all my shares but also my home-folder which doesn;t exist. I would like to hide or remove that home share if possible.

I'm sure there is a better way of doing this but this is what I do to hide home folder in my setup.

Edit sudo nano /etc/samba/smb.conf

Add the available = no as shown below under homes section.

[homes] comment = Home Directories available = no browseable = no

Finally, sudo systemctl restart smbd

circle-dev avatar Jun 19 '24 12:06 circle-dev

I'm having this same issue, I have a smb share that is the same name as a user. When trying to mount it (From MacOS) it was mounting the home directory. I tried disabling the home directory according to @circle-dev suggestion but now the share just gives a generic error ("There was a problem connecting to the server <>. Check the server name or IP address...").

I don't have this issue for another user, same share name as user name, but that user has never logged in via SSH... Not sure if that makes a difference but I'm guessing it's related.

ttufts avatar Jul 26 '24 16:07 ttufts