adding a group to samba

its easy to add users to a file server (samba on clarkconnect) but adding groups is not so easy on a stock configuration unless i add webmin. and in an effort to keep things simple i didn’t add webmin. instead i use the console. the following was taken from one of the threads in the cc forum:

from the console (putty):

% groupadd public

to make sure it works:

% cat /etc/group | grep public

this should return public:x:502 or something similar

to add user1 to this group

% usermod -g public user1

another way to add a person to a group is to edit /etc/group and add user1 to the public group:

public:x:502:user2,user1

note that “502″ is system assigned. do not change it.

links:
cc forum thread
samba
clarkconnect

comments are closed.