HOWTO : SAMBA / CIFS June 10, 2016 03:20AM |
Registered: 10 years ago Posts: 1,037 |
apt-get update; apt-get upgrade -f -y; apt-get install samba cifs-utils --install-recommends -f -y;Now its time to flush the disk(s) and reboot
sync; reboot
mv /etc/samba/smb.conf /etc/samba/smb.conf.oldcreate a new smb.conf with teh following commands:
touch /etc/samba/smb.conf nano /etc/samba/smb.confcopy and past the following into the edited file
[global] server string = %h server map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 # log file = /var/log/samba/log.%m max log size = 1000 client signing = required dns proxy = No usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d idmap config * : backend = tdb socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=131072 SO_RCVBUF=131072 create mode = 777 directory mode = 777 interfaces = eth0 # bind interface only = yes [DATA] delete readonly = yes writeable = yes browseable = yes public = yes guest ok = Yes path = /media/Disk1/DataTest the Samba conf file for any syntax error:
cd /etc/samba testparmIf there is any error then it will tell you and show some indication where to look to fix.
service samba restartCorrect the permissions on the folder so anyone can read and write. To allow anonymous user access give the permissions as follows;
cd /media/Disk1 chmod -R 0755 Data/ chown -R nobody:nogroup Data/
Re: HOWTO: SAMBA / CIFS June 10, 2016 03:21AM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO: SAMBA / CIFS June 10, 2016 03:21AM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO : SAMBA / CIFS June 12, 2016 05:42PM |
Admin Registered: 13 years ago Posts: 18,900 |
> apt-get update; apt-get upgrade -f -y; apt-get > install samba cifs-utils --install-recommends -f > -y; sync; reboot; >
sync; reboot;
Re: HOWTO : SAMBA / CIFS June 12, 2016 06:12PM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO : SAMBA / CIFS June 24, 2016 11:26AM |
Registered: 9 years ago Posts: 73 |
Re: HOWTO : SAMBA / CIFS June 24, 2016 12:17PM |
Registered: 10 years ago Posts: 1,037 |
sudo nano /etc/fstab
# Samba/CIFS mount //192.168.10.254/DATA /home/gravelrash/DATA cifs guest,uid=1000,iocharset=utf8 0 0
sudo mount -a
Re: HOWTO : SAMBA / CIFS June 24, 2016 06:21PM |
Registered: 9 years ago Posts: 73 |
> sudo nano /etc/fstab >>
> # Samba/CIFS mount > > //192.168.10.254/DATA /home/gravelrash/DATA cifs > guest,uid=1000,iocharset=utf8 0 0 >>
> sudo mount -a >>
Re: HOWTO : SAMBA / CIFS June 25, 2016 07:16AM |
Registered: 10 years ago Posts: 1,037 |
[global] server string = %h server map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 # log file = /var/log/samba/log.%m max log size = 1000 client signing = required dns proxy = No usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d idmap config * : backend = tdb # MY MODS socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=131072 SO_RCVBUF=131072 create mode = 777 directory mode = 777 interfaces = eth0 [DATA] delete readonly = Yes writeable = Yes public = Yes guest ok = Yes path = /mnt/SATA/DATA browseable = Yes
# Self Mounted # Standard HDD LABEL=DATA /mnt/SATA ext4 suid,errors=continue,dev,noatime,exec 0 2 # Additional USB disk # LABEL=1TB /mnt/usb ext4 errors=continue,dev,noatime 0 2 # Swapdisk /dev/sda1 swap swap defaults 0 0
# Global parameters
[global]
server string = %h server (Samba, Linux Mint)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = bcast host
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
# Self Mounted # remote Data share //192.168.2.200/DATA /home/gravelrash/DATA cifs guest,uid=1000,iocharset=utf8 0 0
Re: HOWTO : SAMBA / CIFS June 25, 2016 01:58PM |
Registered: 9 years ago Posts: 73 |
> [global] > server string = %h server > map to guest = Bad User > obey pam restrictions = Yes > pam password change = Yes > passwd program = /usr/bin/passwd %u > passwd chat = *Enter\snew\s*\spassword:* %n\n > *Retype\snew\s*\spassword:* %n\n > *password\supdated\ssuccessfully* . > unix password sync = Yes > syslog = 0 > # log file = /var/log/samba/log.%m > max log size = 1000 > client signing = required > dns proxy = No > usershare allow guests = Yes > panic action = /usr/share/samba/panic-action %d > idmap config * : backend = tdb > > # MY MODS > socket options = SO_KEEPALIVE TCP_NODELAY > IPTOS_LOWDELAY SO_SNDBUF=131072 SO_RCVBUF=131072 > create mode = 777 > directory mode = 777 > interfaces = eth0 > > [DATA] > delete readonly = Yes > writeable = Yes > public = Yes > guest ok = Yes > path = /mnt/SATA/DATA > browseable = Yes >>
> # Self Mounted > > # Standard HDD > LABEL=DATA /mnt/SATA ext4 > suid,errors=continue,dev,noatime,exec 0 2 > > # Additional USB disk > # LABEL=1TB /mnt/usb ext4 > errors=continue,dev,noatime 0 2 > > # Swapdisk > /dev/sda1 swap swap defaults 0 > 0 >>
> # Global parameters
> [global]
> server string = %h server (Samba, Linux Mint)
> server role = standalone server
> map to guest = Bad User
> obey pam restrictions = Yes
> pam password change = Yes
> passwd program = /usr/bin/passwd %u
> passwd chat = *Enter\snew\s*\spassword:* %n\n
> *Retype\snew\s*\spassword:* %n\n
> *password\supdated\ssuccessfully* .
> unix password sync = Yes
> syslog = 0
> log file = /var/log/samba/log.%m
> max log size = 1000
> name resolve order = bcast
> host
> dns proxy = No
> usershare allow guests = Yes
> panic action = /usr/share/samba/panic-action %d
> idmap config * : backend = tdb
>
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> create mask = 0700
> printable = Yes
> browseable = No
>
>
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
>
>
>
> # Self Mounted > # remote Data share > //192.168.2.200/DATA /home/gravelrash/DATA cifs > guest,uid=1000,iocharset=utf8 0 0 > >
Re: HOWTO : SAMBA / CIFS June 25, 2016 04:05PM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO : SAMBA / CIFS June 26, 2016 03:33AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: HOWTO : SAMBA / CIFS June 26, 2016 02:57PM |
Registered: 9 years ago Posts: 73 |
Re: HOWTO : SAMBA / CIFS March 04, 2020 08:59PM |
Registered: 7 years ago Posts: 13 |
Re: HOWTO : SAMBA / CIFS March 09, 2020 05:40AM |
Registered: 10 years ago Posts: 1,037 |
Re: HOWTO : SAMBA / CIFS March 22, 2020 01:46AM |
Registered: 4 years ago Posts: 39 |
login as: root root@192.168.1.42's password: Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Mar 21 22:40:36 2020 from 192.168.1.47 root@debian:~# sudo DEBCONF_DEBUG=developer apt install -f Reading lists of packages … It is ready Creation of a tree of dependences Reading status information... It is ready 0 packages updated, 0 new packages installed, 0 packages marked for deletion, and 0 packages not updated. Not up to 2 packets installed or deleted. After this operation, the amount of disk space used will increase by 0 B. Configuring samba-common-bin package (2:4.9.5 + dfsg-5 + deb10u1)... Checking smb.conf with testparm Load smb config files from /etc/samba/smb.conf Error loading services. Dpkg: Error processing samba-common-bin (--configure) packet: installed samba-common-bin package post-installation script subprocess returned error exit status 1 Dpkg: Packet dependencies do not allow to configure samba package: Samba depends on samba-common-bin (= 2:4.9.5 + dfsg-5 + deb10u1), however: The samba-common-bin package has not yet been configured. Dpkg: Error processing samba package (--configure): Dependency issues - leave not configured Errors occurred while processing the following packets: samba-common-bin samba E: Sub-process /usr/bin/dpkg returned an error code (1) root@debian:~#
Re: HOWTO : SAMBA / CIFS March 29, 2020 10:54AM |
Registered: 4 years ago Posts: 2 |
Re: HOWTO : SAMBA / CIFS March 29, 2020 04:59PM |
Admin Registered: 13 years ago Posts: 18,900 |
e2label /dev/sdb1 MUSICAnd then either mount it manually using pmount
pmount -o noatime /dev/sdb1 MUSICor use my udev rules to automount when it is plugged in:
[MUSIC] delete readonly = yes writeable = yes browseable = yes public = yes guest ok = Yes path = /media/MUSIC
Re: HOWTO : SAMBA / CIFS March 31, 2020 02:12PM |
Registered: 4 years ago Posts: 2 |