<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394"><div class="gmail_default">I set up my own share declaration at the end of the smb.conf file. For example I have a simple one called [archive] that allows backups to be placed on a server running Ubuntu 15.04 server edition. </div><div class="gmail_default"><br></div><div class="gmail_default">I create the samba users and passwords for each user (these match their unix user accounts)</div><div class="gmail_default">I set the appropriate unix permissions for the group that I want typically 775.</div><div class="gmail_default">I create a group called "archive" in /etc/group and then add all of the users who are to have access to it into the archive group.</div><div class="gmail_default">the valid users = @group_name is the key that allows samba to control the access to samba share.</div><div class="gmail_default"><br></div><div class="gmail_default">The key is add the the users to the group in /etc/group and to make sure that they have a mapped samba username and password.</div><div class="gmail_default"><br></div><div class="gmail_default">[archive]</div><div class="gmail_default"> comment = backup drive</div><div class="gmail_default"> path = /srv/archive</div><div class="gmail_default"> browseable = yes</div><div class="gmail_default"> guest ok = no</div><div class="gmail_default"> valid users = @archive </div><div class="gmail_default"><br></div><div class="gmail_default">There are other options but I usually find that the I forget to update the /etc/group file.</div><div class="gmail_default"><br></div><div class="gmail_default">Hope that helps</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 26, 2015 at 11:33 AM, 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>
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 server using the Samba server's command line. Using Dolphin on my desktop I can add directories to /work/ - they have correct permissions and ownership. However I get a permissions dialog when adding files to /work/<br>
<br>
If I try to add a file to one of those directories I created using Dolphin on my desktop there is no error and no file shows up.<br>
<br>
<br>
Thank you for your help!!<br>
Keith<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 2015-07-26 10:28, Stephen Partington wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
[3]<div><div class="h5"><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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
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 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 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 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></div></div>
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] [1]<div><div class="h5"><br>
<br>
/mnt/centos6 (command line on my desktop)<br>
<br>
It mounts and I can view the /work directory in Dolphin on the 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>
<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]<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]<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>
</span></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>
<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>
<br></span><span class="">
A mouse trap, placed on top of your alarm clock, will prevent you from<br>
rolling over and going back to sleep after you hit the snooze button.<br>
<br>
Stephen<br>
<br>
<br>
<br></span><span class="">
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]<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><br>
</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>