Linux Server Diary

The trials and tribulations of a Linux newbie trying to setup a home server.

Thursday, November 16, 2006

Samba Work - It's Easy This Time

I started with the smb.conf file from the old server without the [homes] section.

[global]
workgroup = GENTRY
server string = Ubuntu-Samba %v on %L

security = user
encrypt passwords = yes

wins support = yes

local master = yes
preferred master = yes
domain master = yes
os level = 95

[files]
comment = Shared Files
path = /export
create mask = 0775
directory mask = 0775
force group = users
read only = no
hide unreadable = yes


Next, I created the /export folder in / and set the file permissions and group.
sudo mkdir export
sudo chmod 0777 export
sudo chgrp users export

Finally, I added my user in Samba
sudo smbpasswd -a username

Now, it's time to restart Samba and try to connect.
sudo /etc/rc.d/init.d/smb restart

Well, the restart command isn't working. How about:
sudo /etc/init.d/samba restart

That worked much better. Let's try to connect.

Worked like a charm! I was able to connect, create a folder, and create a file. Both had the correct permissions and group settings. Sweet!

That's all for tonight.

Labels:

0 Comments:

Post a Comment

<< Home