LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2013, 04:58 PM   #1
andrewdazotus
LQ Newbie
 
Registered: Jul 2013
Location: Canada
Distribution: Raspbian, Debian
Posts: 5

Rep: Reputation: Disabled
Setting up Samba for access from Windows 7


Hi,

I've set up two directories like this:
Code:
drwxrwxr-x 2 root admin 4096 Jul 23 18:14 [R]
drwxrwxrwx 2 root root  4096 Jul 23 18:13 [S]
and the smb.conf file thus:
Code:
[Read-Only]
  comments = Read Only Space - Software packages etc.
  path = /[Drvs]/[R]
  browseable = yes
  public = yes
#  read only = yes
  writeable = yes
  write list = @admin
  create mask = 0660
  directory mask = 0775

[Share]
  comments = Share - All Read Write Access
  path = /[Drvs]/[S]
  browseable = yes
  public = yes
  writeable = yes
  create mask = 0777
  directory mask = 0777
then allocate share to S:\ and Read-Only to R:\

then all users get r/w access to S:\ and read only access to R:\ unless the user is a member of the admin group

the server is called Srvr and the workgroup in smb.conf is First

there is no domain but I'm running Win-7 pro so it calls the domain M009 (It's my ninth laptop)

I've tried connecting as M009\andrew, Srvr\andrew and First\andrew but I still do not get write access.

what am I missing?

oh, andrew is part of the admin group

using windows for many years, three months exp on Linux

Andrew
 
Old 07-23-2013, 05:56 PM   #2
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
Beats me. I don't even know what version of Samba you're using. BTW, I hope that your smb.conf has a [global] section as well. You might need to add some settings there, too, maybe not. The testparm program can validate your smb.conf file and report what it thinks you have.

In Samba 3, it's best to use the smbpasswd program to add users and possibly machines (for domain trust on domains) to the network. In Samba 3, you need the Unix users that correspond to the Samba users, but Samba takes its password from a separate database.

On the Linux box, you can use the smbclient program to test things as well. Something like `smbclient -U andrew //server/share` might be a good start, `smbclient -L //server` to list the basics if that doesn't work.
 
1 members found this post helpful.
Old 07-23-2013, 06:24 PM   #3
andrewdazotus
LQ Newbie
 
Registered: Jul 2013
Location: Canada
Distribution: Raspbian, Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sorry, It is Samba3, installed it fresh on Debian this afternoon. I just used apt-get install samba, I didn't even look for other versions

it was the smbpasswd.

I ran smbpasswd -a andrew and it all works now with:

write list = andrew

many thanks.

and I think it's working with write list = @admin too.

Last edited by andrewdazotus; 07-23-2013 at 06:55 PM.
 
Old 07-23-2013, 07:34 PM   #4
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
I'm sure you'll work out any kinks over time. Note that Samba and Linux work together, and some things having to do with permissions can be done better and quicker with Unix permissions (chmod, chown, setfacl, usermod, groupmod, etc.) than with settings in smb.conf. Should everything be set up correctly, Samba can also make use of POSIX ACLs in Linux filesystems and use them to represent Windows ACLs on the network.

If nothing else, note that "public = yes" is for things that you truly mean to be public, or for a resource that Windows won't touch unless it can be used without using a password. For the sake of easy network browsing from Windows and ordinary shares, it's more important for things to be browseable than to be public.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - anybody got windows clients setting their samba passwords? catkin Linux - Software 2 06-22-2013 04:04 AM
Setting up VPN for Windows machines to access remote Samba shares irvken Linux - Server 1 11-08-2009 02:10 PM
Need help setting up samba between Linux and Windows X P ziggy25 Linux - Software 6 08-24-2008 03:59 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
setting up Samba so i can access a dir from my other Windows PC's andara Linux - Newbie 3 11-21-2003 12:39 PM


All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration