Choose style:

Author Topic: SAMBA Setup Help [SOLVED]  (Read 2526 times)

0 Members and 1 Guest are viewing this topic.

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
SAMBA Setup Help [SOLVED]
« on: August 11, 2015, 11:52:53 pm »
Hello,

I really need some help with setting up a share folder with SAMBA that I can access with my Windows 10 computer.

So, I thought I had everything setup ok, but apparently I am getting an error that isn't really an error because it gives no information whatsoever.

I have included a step by step of what I have with photos. (Excuse my old laptop with the cracked screen, I am using it for a movie database).

Spoiler (click here to view / hide)



Here is the smb.conf file:
Spoiler (click here to view / hide)
[global]
    ; General server settings
   netbios name = MOVIE_DATABASE
   server string =
   workgroup = WORKGROUP
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

;   passdb backend = tdbsam
   security = user
   null passwords = true
   username map = /etc/samba/smbusers
   name resolve order = hosts wins bcast
;   encrypt passwords = yes
   wins support = yes

;   printing = cups
   printcap name = CUPS

;   syslog = 1
   syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
   path = /var/lib/samba/printers
;   browseable = yes
   guest ok = yes
;   read only = yes
   write list = root
   create mask = 0664
   directory mask = 0775

[printers]
   path = /tmp
   printable = yes
   guest ok = yes
   browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MOVIE_DATABASE]
   path = /media/samba
;   browseable = yes
   writeable = yes
   create mask = 0644
;   directory mask = 0755
   force user = Movies
   force group = Movie_Database
   valid users = haleigh, kolton, laurene, movie
[close]



[close]

Thank you to all that could help!

EDIT: Removed some photos and added copied text.
« Last Edit: August 12, 2015, 06:32:40 pm by Kolton »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4893
  • Karma: 1053
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: SAMBA Setup Help
« Reply #1 on: August 12, 2015, 01:29:12 am »
Hi Kolton, how's it going?  We are no longer accepting terminal screenshots as feedback unless there is no other option.  The links to screenshots are too often removed or broken.  This renders the whole thread useless for future inquiries and a complete waste of time for the devs helping out.  Could you please rerun the terminal commands?  It is very easy to copy and paste the outputs into the forum editor.  You can do this by highlighting the area to be copied by holding down the left mouse button while dragging the mouse.  Use the copy function on the right mouse click.  Paste the contents into the forum editor using the paste function on the right mouse click.  To preserve the original format, please make sure you encapsulate the outputs with the, # Insert Code function.  This is located above the  :-[ Embarrassed emoticon in the forum editor.  For extra long outputs, you may use the Sp Spoiler function instead.  This is located above the  :'( Cry emoticon in the forum editor.  To post the outputs from text files, you may use the, Insert Quote function.  This is located above the :-X Lips Sealed emoticon in the forum editor.  The appropriate adjustments must to be made before we can proceed with the thread.  Many thanks for your understanding  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #2 on: August 12, 2015, 01:43:43 am »
No I can't because it's on another computer. Hence the photos.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SAMBA Setup Help
« Reply #3 on: August 12, 2015, 04:02:22 am »
Try installing the GUI front end for samba, and use that to configure the share .. open a terminal and run:
Code: [Select]
sudo apt-get install system-config-samba
then in the main menu go to:-

menu > System Tools > Samba

and use it to configure your share (click the + button) .. be sure to select "Allow access to anyone" or to add your Windows account login details.



If you're still having problems, please post the contents of:
Code: [Select]
gedit /etc/samba/smb.conf


Quote
No I can't because it's on another computer. Hence the photos.

Please be aware that AndyInMokum is just following my request to not accept images of terminal output unless 100% necessary, too many people were deleting the images where they were hosted once their problem was solved without considering that rendered the entire topic (and therefore any time spent by responders) a waste of time to future searchers .. could you not have copied the output to a text file then transfered the file to your other PC ?
« Last Edit: August 12, 2015, 04:13:06 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #4 on: August 12, 2015, 01:50:56 pm »
Hey,

Sorry for the delayed response. I am using the GUI for SAMBA and I will get that command output to you when I get home after work.

Thanks!

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #5 on: August 12, 2015, 04:59:51 pm »
Alright, I have setup TeamViewer to help out with some things.

Here is the smb.conf file:

Spoiler (click here to view / hide)
[global]
    ; General server settings
   netbios name = MOVIE_DATABASE
   server string =
   workgroup = WORKGROUP
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

;   passdb backend = tdbsam
   security = user
   null passwords = true
   username map = /etc/samba/smbusers
   name resolve order = hosts wins bcast
;   encrypt passwords = yes
   wins support = yes

;   printing = cups
   printcap name = CUPS

;   syslog = 1
   syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
   path = /var/lib/samba/printers
;   browseable = yes
   guest ok = yes
;   read only = yes
   write list = root
   create mask = 0664
   directory mask = 0775

[printers]
   path = /tmp
   printable = yes
   guest ok = yes
   browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MOVIE_DATABASE]
   path = /media/samba
;   browseable = yes
   writeable = yes
   create mask = 0644
;   directory mask = 0755
   force user = Movies
   force group = Movie_Database
   valid users = haleigh, kolton, laurene, movie
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SAMBA Setup Help
« Reply #6 on: August 12, 2015, 05:27:20 pm »
Where did that smb.conf come from.

If I were you I'd just purge/reinstall samba (and it's config file) .. so it's back to defalts .. then use the GUI to set a share(s)
Code: [Select]
sudo apt-get purge samba samba-common system-config-samba
then
Code: [Select]
sudo rm -rf /etc/samba/ /etc/default/samba
then
Code: [Select]
sudo apt-get install samba samba-common system-config-samba
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #7 on: August 12, 2015, 05:55:39 pm »
So, I can access it now from my other computer, but I can't write anything to the folder..

I get not enough permissions.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SAMBA Setup Help
« Reply #8 on: August 12, 2015, 06:06:38 pm »
Where is the share ? .. /media/samba ?

and what's the output from:
Code: [Select]
whoami
and
Code: [Select]
mount
« Last Edit: August 12, 2015, 06:08:17 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #9 on: August 12, 2015, 06:20:29 pm »
The share is literally  (root)media/samba/

And here is the output for each command:

Spoiler (click here to view / hide)
movie@movie ~ $ whoami
movie
movie@movie ~ $ mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=movie)
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SAMBA Setup Help
« Reply #10 on: August 12, 2015, 06:29:10 pm »
One method would be to give everyone read/write/execute permissions for that directory:
Code: [Select]
sudo chmod 777 /media/samba
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kolton

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Six
Re: SAMBA Setup Help
« Reply #11 on: August 12, 2015, 06:32:19 pm »
It worked! Huzzah!

Thank you so much. I wish I could buy you a coffee :D