A
A
Azat20152017-01-11 21:28:27
Samba
Azat2015, 2017-01-11 21:28:27

How to set up Samba in Raspbian?

Lord linuksoidy, please help.
My next run to fight Samba under Raspbian ended in failure and I came to give up here.
To begin with, I am zero in Linux.) Secondly, once everything worked for me. Until the memory card in Raspberry was covered, and everything had to be installed from scratch.
In general, there is a disk connected via USB ntfs.

  • I mount the HDD in fstab:
    UUID="xxxxxxxxxxxxx" /mnt/usbhdd ntfs rw,nls=utf8,gid=plugdev,umask=002 0 0
  • There is Samba with a config (experimented with settings a billion times)
    [global]
    security = user
    workgroup = WORKGROUP
    server string = Samba
    guest account = nobody
    map to guest = Bad User
    [share]
    path = /mnt/usbhdd/download
    browseable = Yes
    guest ok = yes
    writeable
    = yes public = yes
  • ls -la /mnt/usbhdd
    drwxrwxr-x 1 root plugdev 28672 Nov 20 10:43 AM .
    drwxr-xr-x 3 root root 4096 Nov 5 22:18 ..
    ..
    drwxrwxr-x 1 root plugdev 20480 Jan 11 23:05 download
  • There is a Windows 7 PC from which the ball can be seen. But when I try to write there, it says "You need permission to perform this operation"

How to make write access without a password from Windows?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Azat2015, 2017-01-11
@Azat2015

Found it!)
Add to the settings:
force user = your-user-name

A
Alexey Ukolov, 2017-07-03
@maximviktorovich777

maybe you need to look for the reason in php.ini
Most likely right there. There are a few more places where this limit can be changed, but judging by the size of 128MB, we are still talking about php.ini - this is the default value.

A
Anarbek Balmukanov, 2017-07-04
@Anarbek

ini_set("memory_limit", "7000M");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question