Linux 14.04 server set up following instructions on http://www.havetheknowhow.com
I have been trying to connect to the samba shares from two windows machines. The server is visible but when I try to connect it requests a logon and no matter what I enter it fails. I have been using webmin to set this up and the samba version is 4.1.6-ubuntu.
One note, webmin did not show any samba user groups.
all systems show "WORKGROUP" as the workgroup
I'm struggling with Samba with a new NAS/Media server I am trying to build. I have created some shares on my Unbuntu server with Samba that are visible and browseable from my home Windows 8.1 clients but when I try to write to any of them I receive a "try again" error.
I want to be able to copy files from my PC to my new Unbuntu server's shares. For now I have one user only on my Unbuntu server that's in the sudo group. From Windows I have tried to map network drive with "different credentials" but no matter what I try from Windows I still can't copy or move files from Windows to the shares.
Thank you
I've got my new system up and running. It's a nice fresh change after running Linux Mint for the past 4 years. Now comes the time of setting things up the way I like them.
As part of my setup, I have a all of my DVD's backed up onto my computer so that I can use a media server in the house. I run XBMC at my TV's with a central samba server (my computer) holding the movies.
In LM, all I had to do was right-click the directory "sharing" and select SMB share and type in the name. Everything else was done for me. This doesn't seem that simple.
Here's what I've done:
1. Menu > Administration > Samba
2. Entered in all the directories to share, under the BASIC tab I've selected visibile, writeable. Under the ACCESS tab I've selected a user (see below).
3. I've created a system user called xbmc with the password of xbmc.
4. I've created a samba user called xbmc with the password of xbmc.
Still not working. So, I went into the shell where I manually started the smb service:
# systemctl start smb.service
So, I went back to Menu > Administration > Samba > Preferences:
Set workgroup to WORKGROUP (but it automatically changes it to lower case after I exit).
Drop to terminal and restart service with systemctl.
I go over to my XMBC installation and try to connect to the source and it finds the SMB share. I click on it and after about 30 seconds a window pops up asking for login credentials. I enter xbmc/xbmc and after about 30 seconds it just cycles through. XMBC doesn't offer any messages, so I went downstairs to my Windows machine and tried to connect to a network drive. I enter in \\IP\share-name and after a few seconds it asks for login credentials. I enter xbmc/xbmc but then it fails with "bad username or password".
I'm not sure what I need to do to get this working.
Here is my /etc/samba/smb.conf file:
http://pastebin.com/m9ExpPJF
System Korora 21 (just installed/updated)
kernel: 3.18.9-200.fc21.x86_64
OK this is kinda long, so I will shorten it as much as I can, as to not be long-winded.
My current network at home:
1 - CentOS 7 desktop (server)
1 - Ubuntu 14.04 desktop
1 - Fedora 21 laptop
2 - Windows 7 desktops
some other various windows boxes also that don't get used regularly, but are on the network.
My 2 Linux desktops (which I use as servers, but they really aren't) have shared folders on them, which I share to the network via Samba (CIFS). I use Samba because Linux is smarter than Windows and Windows won't read NFS, so I share them as Samba so all devices can see them.
Generally speaking, if I share the folders on each box as 0777, I have no issues. But lately I have been wanting to implement some better security, so I wanted to SETGID and chown the shared folders from the local machine to a specific group, then change the folders to 2774.
My problem is that I keep getting permissions errors when trying to connect from the other Linux machines, and sometimes the Windows machines also. My main question is: do I CHMOD 2774 the local mount-point before mounting it? Or so I CHMOD 2774 the shared folder on the other server, then mount it locally to a folder whose permissions are different? Or do I CHMOD both of them the same?
basically the uis and gid ownerships change on a local folder when I mount a shared drive to that folder, so when I try to write or sometimes read that local folder, I get permissions errors.
I can provide any additional info needed.
Hello
I want to share a folder on my Fedora linux pc with a Windows 8 pc in the same network.
I have followed this guide : http://www.labtestproject.com/config...rver_on_fedora
but I am not able to see my share on my Fedora linux pc from the other Windows 8 PC.
This is my /etc/samba/smb.conf :
Code:
[global]
workgroup = mygroup
server string = HP Samba
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
; max protocol = SMB2
[My-Documents]
path = /home/Jonas/Desktop/My-Documents
read only = no
; browseable = yes
guest ok = yes
The workgroup name is the same as the workgroup name on the Windows PC.
Firewall on Fedora linux pc is down.
I do get the following output when restarting smb :
Code:
apr 27 12:27:49 jonashp.domain.local systemd[1]: Starting Samba SMB Daemon...
apr 27 12:27:49 jonashp.domain.local smbd[4324]: [2015/04/27 12:27:49.686796, 0] ../source3/param/loadparm.c:3034(lp_set_enum_parm)
apr 27 12:27:49 jonashp.domain.local smbd[4324]: WARNING: Ignoring invalid value 'share' for parameter 'security'
apr 27 12:27:49 jonashp.domain.local smbd[4324]: [2015/04/27 12:27:49.687187, 0] ../source3/smbd/server.c:1286(main)
apr 27 12:27:49 jonashp.domain.local smbd[4324]: standard input is not a socket, assuming -D option
apr 27 12:27:49 jonashp.domain.local systemd[1]: Started Samba SMB Daemon.
I thought it would be that simple...
I have a vps with Ubuntu 12.04 that I'm in the process of configuring. I have configued samba and been able to mount a share from my local computer to my samba share on my remote vps.
The issue is that when I go into the Samba server module and I click start, stop or restart it has no effect what so ever. I can ssh into the terminal and run $ sudo service smbd start and that will work (as well as stop/restart). However it will not work within Webmin.
I then went to the module configuration and changed the start command to: service smbd start and the same for the stop command (with "stop" though).
I then when to System > Running processes and saw that smbd is running however the list is showing "is running now" as NO. I click the start/stop button within this section and it doesn't work again.
Can anyone please help me figure this out?
Webmin 1.5.9
Ubuntu 12.04
I have set up a SFTP which I can connect to, go to the right directory and read/write files to.
The full path is home/sftpuser/SFTP/Customer
The user "sftpuser" I am connecting with is in the group "ftpusers" which has read/write access.
That works fine.
Here is my sshd_config:
Code:
Match Group ftpusers ChrootDirectory /home/%u/
ForceCommand internal-sftp
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
However, I made a samba share of the folder Customer, when I go to the IP adress on a Windows machine "\\10.0.0.1\" I can see the folder Customer, when entering it requests user/pass and afterwards gives an error: you have not the right permissions.
In Webmin:
Customer /home/sftpuser/SFTP/Customer Read/write to everyone
My smb.conf:
Code:
[global]
syslog = 0
log file = /var/log/samba/log.%m
read raw = no
write raw = no
passdb backend = tdbsam
workgroup = DOMAIN
usershare allow guests = yes
socket options = TCP_NODELAY
pam password change = yes
passwd program = /usr/bin/passwd %u
unix password sync = yes
obey pam restrictions = yes
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
server role = standalone server
server string = %h server (Samba, Ubuntu)
max log size = 1000
map to guest = bad user
panic action = /usr/share/samba/panic-action %d
dns proxy = no
[Customer]
force create mode = 755
browsable = yes
public = yes
path = /home/sftpuser/SFTP/Customer
force directory mode = 755
writeable = yes
valid users = @ftpusers
force group = ftpusers
write list = @ftpusers
I have been struggling for 3 days and am totally out of ideas.
LS -L for the folder:
Code:
total 4
drwxrwx---+ 2 sftpuser ftpusers 4096 Apr 9 11:35 Customer
- I have samba server and ldap server both on different machine. I want to authenticate all the ldap user on samba share to giving access permission for user's on share. I have refer too many document for that but I am unable to access share with ldap user's username and password. I have referred below link
https://wiki.samba.org/index.php/Samba_&_LDAP
http://www.unixmen.com/setup-samba-d...-ubuntu-13-04/
How to troubleshoot for user authentication on samba share?
Ugh - been working on this for days
I have a SAMBA server running on a Raspberry Pi. Should be pretty much up to date - retrieved today.
Want to get Windows 7 and Android smartphones to be able to access, but neither can. Ideally, I would like to generate no password challenge, but that does not seem to be on the agenda. Windows 7 cannot seem to send the account name in a way SAMBA understands. The Android phones similarly have no luck getting credentials to SAMBA.
Tried many, many variations, read many, many pieces of advice. Most recent smb.conf attached.
FYI
1) I have tried with and without SECURITY=USER
2) did smbpasswd -an nobody
3) the share has CHMOD 775
4) testparm seems happy
Any help appreciated.
Jonathan
I banging my head, I am unable to mount samba share. Here is the info
Samba share is in RHEL 6.5
# vi /etc/samba/smb.conf
[sambashare]
comment = samba share
path = /smbdemo
guest ok = yes
browseable = yes
# ls -dZ /smbdemo/
drwxrwxrwx. root root system_ubject_r:samba_share_t:s0 /smbdemo/
# getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> on
samba_export_all_rw --> on
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
use_samba_home_dirs --> off
virt_use_samba --> off
Accessing this share from another Red Hat Box 6.4 (samba-client)
# smbclient -L 192.168.1.10 -U don [Works perfectly]
Now, when I try to mount the share as:
# mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don
Password:
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
# smbclient //192.168.1.9/smbdemo -U don
Enter don's password:
Domain=[BARNES] OS=[Unix] Server=[Samba 3.6.23-14.el6_6]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
I searched in google but no avail.
Hi guys,
Need help configuring my samba file server, i have 3 folders
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
map to guest = Bad User
hosts allow = 127. 192.
log file = /var/log/samba/log.%m
max log size = 50
security = share
load printers = no
cups options = raw
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
; valid users = MYDOMAIN\%S
;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = no
; guest ok = no
; writable = no
; printable = yes
[BIP]
path = /home/BIP
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
[Surya Kapuas Perkasa]
path = /home/suryakapuasperkasa
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
[Misc]
path = /home/Miscelaneous
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
read only = no
The BIP and Surya Kapuas Perkasa can be accessed by windows users, but the Misc, cannot, can somebody help me with solution pls, thanks