jeltsch's blog

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.

Piping the output of find into a new command (find, xargs)

E.g. to change the permissions of all directories:

find . -type d -print | xargs /bin/chmod ug+rx

To be able to handle directory names with special characters

find . -type d -print0 | xargs -0 /bin/chmod ug+rx

In order to find all tif files in the current directory or below and to compress them (using the ImageMagick "mogrify" command and LZW compression):

find . -name '*.tif' -print | xargs mogrify -compress LZW

Pages