Linux

Changing specific ownerships: chmod --from

I copied a bunch of preference files (those files and directories whose name starts with a dot) from my old RedHat home directory into my new Suse install. I had backed up the files being root and so all of them were owner:group root:root. In order to only change those files, that had root:root into jeltsch:users I executed from within my home directory:
sudo chown -R --from=root:root jeltsch:users .*

If you wanted to change all files on the system that belong to one user you could use:
sudo chown -R --from=username newowner /

Samba trouble (smb, smbadduser, smbpasswd)

If your samba is unreliable, there can be a number of reasons. I got the impression that YAST overwrites configuration data you have manually edited (e.g. in the password and user files) when you try to change settings via the YAST samba setup procedure. Here follows a checklist in case samba is again not responding or not visible in the network neighborhood. It could be that the unreliability is due to a PDC shutting down. Maybe I should make my Linux the PDC as it is always running.

Pages