Changes

Jump to navigation Jump to search
no edit summary
$ sudo chmod 770 /bulk
$ groupadd smbusers
$ chown :smbusers /bulk
You also need to add a user to the Samba database. I used the username "alexjiang" for the commands below, which can be replaced with whatever username needs to be added:
$ smbpasswd -a alexjiang
$ groupadd smbusers
$ chown :smbusers /bulk
$ usermod -G smbusers alexjiang
Then you can try using any Windows Explorer window to check if the file server is set up correctly.
 
==Adding accounts for McNair Center Researchers==
 
Add a user group:
cat /etc/group
/usr/sbin/groupadd -g 5xx username
 
Then add the user (it doesn't matter what you put for -p, it is going to be overwritten):
/usr/sbin/useradd -g username -G root -s /bin/bash -p xxxx -d /home/username -m username
where g is the primary group, G is other groups, p sets a password,
d declares a home directory and m makes the directory
 
Add the user's samba password:
 
$ smbpasswd -a alexjiang
$ usermod -G smbusers alexjiang
 
Then restart the samba services:
 
$ sudo restart smbd
$ sudo restart nmbd
 
==Mapping a drive to the Dbase server's bulk directory==
 
In Windows:
Go to my computer -> Map Network Drive
 
Connect to:
\\128.42.44.181\bulk
 
With username:
MCNAIRDB\username
Anonymous user

Navigation menu