Hardware - Support > Network

I need help with samba

(1/4) > >>

stevef:
Starting a fresh thread is fine - but you need to provide more information.

The post reads like you are trying to access a drive connected to a router.  If that is correct, then you may need to review the router's resource sharing documentation/setup before looking at the client.

Fredrik Erlandsson:

--- Quote from: Phobos84 on March 02, 2019, 10:22:52 PM ---OMG I finally got it.  I have seriously put 18 hours into getting this to work today.  I HATE SAMBA.  Anyway the problem was that I never set the second hard drive to auto mount.  Once I did that the directory info changes.  You just have to change smb.conf to match.  This is what it looks like now.

--- Code: ---#======================= Global Settings ====================================
[global]
workgroup = WORKGROUP
server string = Linux Lite Shares
netbios name = Server
security = user
encrypt passwords = true
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
dns proxy = no
#======================= Share Definitions ===================================
[liteshare]
path = /home/%U/linux_share
available = yes
valid users = %U %G
write list = %U
browsable = yes
public = yes
writable = yes
guest ok = yes
read only = no
printable = no
locking = no
strict locking = no

[Gunroom]
path = /mnt/11390a57-b9fd-4fbb-849a-a1006275139d/shares/
available = yes
valid users = %U %G
write list = %U
browsable = yes
public = yes
writable = yes
guest ok = yes
read only = no
printable = no
locking = no
strict locking = no
--- End code ---

Thanks everyone for giving me pointers.  If nothing else I learned a lot about samba today.

--- End quote ---

Hello and sorry for the bump on this old topic, but I am having major issues with my USB-drive connected to my router.
I can't seem to edit the smb.conf file. I don't have the permissions  :(

bitsnpcs:
Great work @Phobos84 for sticking at it :)

Phobos84:
OMG I finally got it.  I have seriously put 18 hours into getting this to work today.  I HATE SAMBA.  Anyway the problem was that I never set the second hard drive to auto mount.  Once I did that the directory info changes.  You just have to change smb.conf to match.  This is what it looks like now.

--- Code: ---#======================= Global Settings ====================================
[global]
workgroup = WORKGROUP
server string = Linux Lite Shares
netbios name = Server
security = user
encrypt passwords = true
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
dns proxy = no
#======================= Share Definitions ===================================
[liteshare]
path = /home/%U/linux_share
available = yes
valid users = %U %G
write list = %U
browsable = yes
public = yes
writable = yes
guest ok = yes
read only = no
printable = no
locking = no
strict locking = no

[Gunroom]
path = /mnt/11390a57-b9fd-4fbb-849a-a1006275139d/shares/
available = yes
valid users = %U %G
write list = %U
browsable = yes
public = yes
writable = yes
guest ok = yes
read only = no
printable = no
locking = no
strict locking = no
--- End code ---

Thanks everyone for giving me pointers.  If nothing else I learned a lot about samba today.

bitsnpcs:
The systems each need to know the other system exists, and where to find it to connect to it, the route to it.
See this preparing the installing, it explains - https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Preparing_the_Installation

About using the LL Manual as @firenice03 wrote, you had said you are reusing the conf file from a previous install. 
Have you tried the manual from the start on this new computer, without using the conf from the previous machine ?
The link in this post also shows how to clean the environment to do a new install.

Navigation

[0] Message Index

[#] Next page

Go to full version