-1

I am trying to do a simple Samba share for a home network. I want anyone on the network to be able to r/w to it.

I followed this but not sure if I followed it exactly correctly, since, as best I can tell, this guide demonstrates how to share a folder on the same disk as the main system, while I am instead seeking to share a folder on an HDD within the same PC.

Following these instructions I made it to this point:

sudo chown -R smbuser:smbgroup /share

At some point after that command, this arose:

sudo: /etc/sudo.conf is group writable
sudo: /etc/sudo.conf is group writable
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins

I found no information on how to fix this and so decided to remove Samba completely to try reinstalling, however, the same message comes up when I run this, even as su.

I am now at the point where I cannot uninstall Samba to start over, and I've been at this for about four hours.

Can anyone kindly assist?

Giacomo1968
  • 58,727
howdy
  • 1

1 Answers1

0

It sounds a lot like you actually ran sudo chown -R smbuser:smbgroup / share or similar, and ended up changing the file ownership and permissions on the entire / rather than just the /share directory.

While this is technically repairable, it would actually be faster to reinstall Debian from scratch (that way you know you'll be starting with a working system, instead of finding leftover un-fixed file permissions months or years later).

This has nothing to do with Samba, in general, and uninstalling Samba wouldn't fix any of it.

grawity
  • 501,077