First of all install cifs-utils smbclient packets, to browse and mount net folders..
So from command line:
apt-get install smbclient cifs-utils
Then you need to create a local folder to map remote folder
mkdir /home/username/example_folder
Then you can mount the remote folder by executing this:
mount -t cifs -o username=remote_pc_username //remote_pc_ip_address/remote_folder_shared_name /home/username/example_folder
Where:
remote_pc_username is the username of remote pc
remote_pc_ip_address is the remote ip address
remote_folder_shared_name is the name that the shared folder has into the local net.
Example 2:
mount -t cifs -o username=pippo //192.168.1.2/shared /home/pluto/example_folder
Terminal will prompts to you the password request....
Give it and then you will have correctly mapped your remote folder into your local example_folder
Bye..
Showing posts with label Samba. Show all posts
Showing posts with label Samba. Show all posts
Wednesday, October 23, 2013
Tuesday, October 8, 2013
Debian Wheezy 7.1: quick samba setup
From command line
apt-get install samba smbclient
In the sharing section add:
apt-get install samba smbclient
during installation, it performs default configuration
after....
adduser guest --home=/home/public --shell=/bin/false --disabled-password
to create a guest user to use only as samba default user...
chmod -R 0700 /home/public chown -R guest.guest /home/public
These commands configure the sharing in way of every user can create a content(file or folder)
into the shared folder.
No one may edit the content created by someone others....
If you want some of differently, change the permission mask.....
Now edit /etc/samba/smb.conf
adding after the row obey pam restrictions = yes
insert these rows:
guest account = guest
invalid users = root
invalid users = root
and in the *Authentication* section, this row.....:
security = share
In the sharing section add:
# SHARED DIR
[shared]
comment = shared
read only = no
path = /home/public
guest ok = yes
guest only = yes
create mask = 0600
directory mask = 0700
[shared]
comment = shared
read only = no
path = /home/public
guest ok = yes
guest only = yes
create mask = 0600
directory mask = 0700
Fine...... restart samba:
/etc/init.d/samba restart
and all is done.....
Bye...
and all is done.....
Bye...
Monday, November 12, 2012
Mounting windows remote folder(already shared in the network))
Suppose you have a directory on a windows machine, shared in the network.
We want to point, and mount, this folder, in read/write mode, on our Debain system.
We need the smbfs and samba-common packages.
We want to point, and mount, this folder, in read/write mode, on our Debain system.
We need the smbfs and samba-common packages.
apt-get install smbfs samba-common
echo 'smbfs' >> /etc/modules
mkdir /home/pippo/empty_directory mount -t smbfs -o username=pippo //windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory
or
mount -t smbfs -o username=pippo,password=pluto //windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory
If you want that the folder should be mounted automatically at the system startup edit the /etc/fstab file and
insert the below line:
//windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory smbfs defaults,user,noauto,username=pippo,password=pluto 0 0For a most detailed guide refer to this page
Monday, March 26, 2012
Debain 6.0.4: quick samba installation and configuration
Here is a quick description to how to install samba server and configure it in order to share folder on the network.
Giving
apt-cache search samba
results:
Giving
apt-cache search samba
results:
[...]
libsmbclient-dev - development files for libsmbclient
libsmbclient - shared library for communication with SMB/CIFS servers
libwbclient0 - Samba winbind client library
samba-common-bin - common files used by both the Samba server and client
samba-common - common files used by both the Samba server and client
samba-dbg - Samba debugging symbols
samba-doc-pdf - Samba documentation in PDF format
samba-doc - Samba documentation
samba-tools - Samba testing utilities
samba - SMB/CIFS file, print, and login server for Unix
smbclient - command-line SMB/CIFS clients for Unix
swat - Samba Web Administration Tool
winbind - Samba nameservice integration server
smb2www - SMB/CIFS network client with a web interface
libsmbclient - shared library for communication with SMB/CIFS servers
libwbclient0 - Samba winbind client library
samba-common-bin - common files used by both the Samba server and client
samba-common - common files used by both the Samba server and client
samba-dbg - Samba debugging symbols
samba-doc-pdf - Samba documentation in PDF format
samba-doc - Samba documentation
samba-tools - Samba testing utilities
samba - SMB/CIFS file, print, and login server for Unix
smbclient - command-line SMB/CIFS clients for Unix
swat - Samba Web Administration Tool
winbind - Samba nameservice integration server
smb2www - SMB/CIFS network client with a web interface
[...]
So run
apt-get install samba smbfs smbclient
to install these three packets....
during installation, it performs default configuration
after....
So next commands.....
adduser guest --home=/home/public --shell=/bin/false --disabled-password
to create a guest user to use only as samba default user....
chmod -R 0700 /home/public
chown -R guest.guest /home/public
These commands configure the sharing in way of every user can create a content(file or folder)
into the shared folder.
No one may edit the content created by something others....
If you want some of differently, change the permission mask.....
Now edit /etc/samba/smb.conf
adding after the row
obey pam restrictions = yes
insert these others rows:
guest account = guest
invalid users = root
invalid users = root
and in the ****Authorization**** section, these two rows.....:
; security = user
security = share
In the sharing section add:
# SHARED DIR
[shared]
comment = shared
read only = no
path = /home/public
guest ok = yes
guest only = yes
create mask = 0600
directory mask = 0700
[shared]
comment = shared
read only = no
path = /home/public
guest ok = yes
guest only = yes
create mask = 0600
directory mask = 0700
Fine...... restart samba:
/etc/init.d/samba restart
and all is done.....
Bye....
and all is done.....
Bye....
Subscribe to:
Posts (Atom)