Hot answers tagged

1

You can do the task by sed directly, for example: sed '/^\[global\]/a\my new line' /etc/samba/smb.conf NOTE: This is not a solution because such line can be in config already. So firstly you should to test whether is the line present.


1

In my case I've found that I can add an entry to /etc/group that masks the Active Directory entry. (This might not be the correct solution but in my situation it works). Here is what I would add for your example, where getent group 67uts-mq-admins returns 67uts-mq-admins:x:57376: mqm:x:57376: You may be able to run the command addgroup --gid 57376 mqm or ...



Only top voted, non community-wiki answers of a minimum length are eligible