<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Have you run testparm from the command line on both of your samba servers to see what is different between the servers</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 31, 2015 at 2:04 PM, Keith Smith <span dir="ltr"><<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I modified my valid user to correspond to yours.<br>
<br>
<br>
[work]<br>
path = /work<br>
browsable = yes<br>
writable = yes<br>
read only = no<br>
valid users = @keith +keith<br>
write list = keith<br>
<br>
<br>
The workstation runs Mint 17 KDE<br>
<br>
The Samba share is on a VirtualBox guest running CentOS 6.6.<br>
<br>
Permissions on the share are set to world writeable (777). The directories created by using Dolphin are 755 but no files can be added via Dolphin.<br>
<br>
Owner is keith:keith<br>
<br>
Both the host and the Samba have a user keith and same password.<br>
<br>
Please note I have another Samba box on my network with a different IP and mount point. Same user and password. This other Samba share is working fine and is connected to by the fstab.<div><div class="h5"><br>
<br>
<br>
<br>
<br>
On 2015-07-31 12:48, James Dugger wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I am assuming that you've checked the ownership of the files and<br>
folders to ensure that user 'keith' and group 'keith' existing and are<br>
assigned correctly. If you are using the group keith, have you added<br>
the following line to your share in samba:<br>
<br>
valid users = @keith +keith<br>
The @ symbol indicates a group and a + indicates a samba username to<br>
add to the share. If the username 'keith' has been added to the group<br>
named 'keith' in /etc/group and the group ownership of all files and<br>
folders is listed as keith, than you should only need:<br>
valid users = @keith<br>
and it should be working.<br>
<br>
If the ownership of the group is not correct. from the parent<br>
directory of the share folder you may want to do:<br>
chown -R keith:keith <share_folder>/<br>
<br>
On Fri, Jul 31, 2015 at 11:38 AM, Keith Smith<br>
<<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks James!<br>
<br>
It mounts OK and I can create directories, just cannot upload<br>
files.<br>
<br>
On 2015-07-31 11:24, James Dugger wrote:<br>
<br>
Have you checked for any conflicts in the options portion in the<br>
mount statement of the drive where the share is located in the<br>
fstab<br>
file of the samba server ... with the mount statement on the samba<br>
client box? Your cifs mount statement calls for the username<br>
option.<br>
, does the mount statement for the drive where the file being<br>
shared on the server allow this user name option?<br>
<br>
<br>
<br>
I'm mounting the actual drive on my samba server as ext4 with<br>
defaults. I am mounting the share on two mac boxes using cifs.<br>
My shares are used for backup not daily rw activity.<br>
<br>
Are you mounting using cifs ?<br>
<br>
My share is in CentOS 6.6 and my desktop is Mint 17 kde.<br>
<br>
I have a samba server on a LAMP dev box and it mounds just fine<br>
using<br>
cifs with the mount command being in the fstab.<br>
<br>
I wonder if there is a conflix between the two boxes or if there<br>
is<br>
something I am missing.<br>
<br>
I spun up a minimul CentOS VM and can ping etc. Turned off<br>
SElinux<br>
and IPTables. Installed and configured Samba and the same thing is<br>
happening.<br>
<br>
I can connect and brows just not upload files. I can even create<br>
directories.<br>
<br>
I set the share to 0777.<br>
<br>
Could this be a VM thing?<br>
<br>
On 2015-07-26 19:01, James Dugger wrote:<br>
<br>
I set up my own share declaration at the end of the smb.conf file.<br>
For example I have a simple one called [archive] that allows<br>
backups<br>
to be placed on a server running Ubuntu 15.04 server edition.<br>
<br>
I create the samba users and passwords for each user (these match<br>
their unix user accounts)<br>
I set the appropriate unix permissions for the group that I want<br>
typically 775.<br>
I create a group called "archive" in /etc/group and then add all<br>
of<br>
the users who are to have access to it into the archive group.<br>
the valid users = @group_name is the key that allows samba to<br>
control<br>
the access to samba share.<br>
<br>
The key is add the the users to the group in /etc/group and to make<br>
sure that they have a mapped samba username and password.<br>
<br>
[archive]<br>
comment = backup drive<br>
path = /srv/archive<br>
browseable = yes<br>
guest ok = no<br>
valid users = @archive<br>
<br>
There are other options but I usually find that the I forget to<br>
update<br>
the /etc/group file.<br>
<br>
Hope that helps<br>
<br>
On Sun, Jul 26, 2015 at 11:33 AM, Keith Smith<br>
<<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>> wrote:<br>
<br>
Thanks for the link.<br>
<br>
My smbpasswd is in /usr/bin/smbpasswd<br>
<br>
Just to make sure I : touch /etc/samba/smbpasswd<br>
<br>
then I :<br>
smbpasswd -x username<br>
smbpasswd -a username<br>
<br>
still same issue.<br>
<br>
Remove /etc/samba/smbpasswd<br>
<br>
I've created several directories off of /work/ on the samba<br>
server<br>
using the Samba server's command line. Using Dolphin on my<br>
desktop<br>
I can add directories to /work/ - they have correct permissions<br>
and<br>
ownership. However I get a permissions dialog when adding files<br>
to<br>
/work/<br>
<br>
If I try to add a file to one of those directories I created<br>
using<br>
Dolphin on my desktop there is no error and no file shows up.<br>
<br>
Thank you for your help!!<br>
Keith<br>
<br>
On 2015-07-26 10:28, Stephen Partington wrote:<br>
</blockquote>
<br>
<a href="http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/" rel="noreferrer" target="_blank">http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/</a><br></div></div>
[4]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[3]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
[1]<br>
[3]<br>
<br>
On Sun, Jul 26, 2015 at 10:22 AM, Keith Smith<br>
<<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>> wrote:<br>
<br>
Thanks!! I added the Samba user as one of the first steps. My<br>
smb.config shows "passdb backend = tdbsam". I cannot find the<br>
tdbsam file. What am I missing?<br>
<br>
On 2015-07-26 09:56, Todd Millecam wrote:<br>
<br>
If I remember right, samba doesn't follow regular *nix<br>
permissions.<br>
Try running the command:<br>
smbadduser<br>
<br>
to get your user name and password in. Use those credentials when<br>
you<br>
login to transfer files and see if it works.<br>
<br>
On Sun, Jul 26, 2015 at 10:18 AM, Keith Smith<br>
<<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>> wrote:<br>
<br>
Hi,<br>
<br>
I am running Mint 17 KDE. I've uploaded Virtualbox and created a<br>
vm using CentOS 6.6. On the CentOS 6.6 VM I installed Samba.<br>
<br>
I created a user on the VM and created the same user as a Samba<br>
user.<br>
I created a directory off root : /work<br>
smb and nmb are both running.<br>
in the /etc/samba/smb.conf I:<br>
1) set the workgroup - I do not think this is necessary since I<br>
am<br>
connection from Linux.<br>
2) commented out all the cups references<br>
3) added the following lines:<br>
<br>
- path = /work<br>
- writable = yes<br>
- browseable = yes<br>
- read only = no<br>
<br>
SELinux is disables<br>
IPTables is disabled<br>
<br>
I have the exact same config on a laptop running CentOS 6.6 and<br>
it<br>
works fine. Only difference is the laptop mounts and connects to<br>
Samba from the fstab.<br>
<br>
To connect to the Samba share on the VM I issue the following<br>
command from my desktop's command line:<br>
<br>
sudo mount -t cifs -o user='username' //<a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">192.168.20.51/work/</a> [1]<br>
[1]<br>
<br>
[2] [1]<br>
[1]<br>
<br>
/mnt/centos6 (command line on my desktop)<br>
<br>
It mounts and I can view the /work directory in Dolphin on the<br>
the<br>
parent (mint 17 KDE desktop).<br>
<br>
I cannot upload files though.<br>
<br>
To test I : chmod -R 777 /work which did not help.<br>
<br>
I checked the Samba logs and they contain almost nothing - no<br>
errors are being logged.<br>
<br>
I've scoured the internet and am finding no solution.<br>
<br>
Tied:<br>
<br>
create mask = 0755<br>
create mode = 0660<br>
directory mode = 0770<br>
force create mode = 0660<br>
force directory mode = 0770<br>
force user = keith<br>
force group = keith<br>
<br>
which did not make a difference.<br>
<br>
Any ideas are much appreciated.<br>
<br>
Thanks!!<br>
Keith<br>
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</div></div><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<span class=""><br>
[3]<br>
[2] [2]<br>
<br>
--<br>
<br>
Todd Millecam<br>
<br>
Links:<br>
------<br></span>
[1] <a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">http://192.168.20.51/work/</a> [1] [1] [2] [1]<span class=""><br>
[2] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2]<br>
[2]<br>
[3] [2]<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<span class=""><br>
[3]<br>
[2]<br>
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<span class=""><br>
[3]<br>
[2]<br>
<br>
--<br>
<br>
A mouse trap, placed on top of your alarm clock, will prevent you<br>
from<br>
rolling over and going back to sleep after you hit the snooze<br>
button.<br>
<br>
Stephen<br>
<br>
Links:<br>
------<br></span>
[1] <a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">http://192.168.20.51/work/</a> [1] [1] [2]<span class=""><br>
[2] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2]<br>
[2]<br>
[3]<br>
[3]<br>
</span></blockquote></blockquote>
<br>
<a href="http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/" rel="noreferrer" target="_blank">http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/</a><br>
[4]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[3]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
[1]<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<br>
[3]<br>
</blockquote><span class="">
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2] [3]<span class=""><br>
<br>
--<br>
<br>
James<br>
<br>
LINKEDIN [4]<br>
<br>
Links:<br>
------<br>
[1]<br>
</span></blockquote>
<br>
<a href="http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/" rel="noreferrer" target="_blank">http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/</a><br>
[4]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[3]<br>
[2] <a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">http://192.168.20.51/work/</a> [1] [1]<br>
[3] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<br>
[4] <a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" rel="noreferrer" target="_blank">http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/</a> [3] [4]<span class=""><br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</span><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<br>
</blockquote><span class="">
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br></span>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2] [2]<br>
<br>
Links:<br>
------<br>
[1] <a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">http://192.168.20.51/work/</a> [1]<span class=""><br>
[2] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2]<br>
[3]<br>
<br>
</span><a href="http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/" rel="noreferrer" target="_blank">http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/</a><br>
[4]<br>
[4] <a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" rel="noreferrer" target="_blank">http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/</a> [3]<span class=""><br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2]<br>
<br>
--<br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [2]<br>
<br></span>
--<br>
<br>
James<br>
<br>
LINKEDIN [3]<span class=""><br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="http://192.168.20.51/work/" rel="noreferrer" target="_blank">http://192.168.20.51/work/</a><br>
[2] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></span>
[3] <a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" rel="noreferrer" target="_blank">http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/</a><br>
[4]<br>
<a href="http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/" rel="noreferrer" target="_blank">http://www.linuxquestions.org/questions/linux-newbie-8/samba-smbpasswd-file-missing-750367/</a><span class=""><br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Keith Smith<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font color="#0b5394">James</font><div><br><span style="color:rgb(255,255,255)"><span style="background-color:rgb(11,83,148)"><b><a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" target="_blank"><span style="background-color:rgb(255,255,255)"><span></span><span style="color:rgb(11,83,148)">Linkedin<span></span></span></span></a></b></span></span><br></div></div></div>
</div>