sharing folder from linux and accessing it via windows server

vanillathunder722

Active Member
Joined
Jan 14, 2011
Messages
66
i would like to share a folder in linux pc using shares-admin and would like to be able to access that folder in windows server 2003 pc. Now i have set up a server 2003 pc with dhcp and manage to connect my linux pc to it. I'm able to share a folder from server to linux and i would like to share a folder from linux to the server pc as well

any help will be much appreciated:)
 

bin3

Senior Member
Joined
Jun 22, 2005
Messages
976
i would like to share a folder in linux pc using shares-admin and would like to be able to access that folder in windows server 2003 pc. Now i have set up a server 2003 pc with dhcp and manage to connect my linux pc to it. I'm able to share a folder from server to linux and i would like to share a folder from linux to the server pc as well

any help will be much appreciated:)

You should probably have a look at SAMBA / CIFS.

There are a lot of tutorials available on how to do this, but basically: Install SAMBA on your Linux server. Configure SAMBA and export a public share.
Mount public share from Windows machine.
 

sebb

Active Member
Joined
Sep 27, 2010
Messages
68
I also struggled countless hours with this.

Here is a step by step guide:

Setting up shared folders using Samba

Make sure Samba is installed

sudo apt-get install samba smbfs

Setup Samba to be accessible by users

sudo nano /etc/samba/smb.conf

Find this section in the file:

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers *If Samba does not work after following this guide please remove this line

Create a Samba password for a user

sudo smbpasswd -a username

This user must already be a user on the server (ie have a server login)

Add the user to the Samba Users list Edit the Samba user list

sudo gedit /etc/samba/smbusers

Add the user

username = "username”

Create a physical samba share

sudo nano /etc/samba/smb.conf

At the bottom of the file add the Samba share (the example below shares the /var/www/ directory as 'www' for the username Use a comma delimited list of users for multiple user shares

[www]
comment = Web root folder
path = /var/www/
writable = yes
admin users = username
write list = username
 

sebb

Active Member
Joined
Sep 27, 2010
Messages
68
I also struggled countless hours with this.

Here is a step by step guide:

Setting up shared folders using Samba

Make sure Samba is installed

sudo apt-get install samba smbfs

Setup Samba to be accessible by users

sudo nano /etc/samba/smb.conf

Find this section in the file:

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers *If Samba does not work after following this guide please remove this line

Create a Samba password for a user

sudo smbpasswd -a username

This user must already be a user on the server (ie have a server login)

Add the user to the Samba Users list Edit the Samba user list

sudo gedit /etc/samba/smbusers

Add the user

username = "username”

Create a physical samba share

sudo nano /etc/samba/smb.conf

At the bottom of the file add the Samba share (the example below shares the /var/www/ directory as 'www' for the username Use a comma delimited list of users for multiple user shares

[www]
comment = Web root folder
path = /var/www/
writable = yes
admin users = username
write list = username
 
Top