LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2012, 11:57 PM   #16
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled

you know i think i even read this artice
jeeez
i'll give her a go
thx!

wait, this is a different one

Last edited by skinney; 10-18-2012 at 11:15 AM.
 
Old 10-18-2012, 02:21 PM   #17
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
ok so i created a smbpasswd.conf file and smbusers.conf file
is that right?
here is my testparm

Load smb config files from smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "password level" option is deprecated
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
password level = 4
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[share]
comment = Ubuntu File Server Share
path = /share
read only = No
create mask = 0755
guest ok = Yes
i can see my /share folder but that is public
i was hoping the home directories would pop up based on what un/pw i used in windows
i changed the un/pw in the credentials manager but i cant tell if that's how it's logging
in

I think i need to do some researd on how windows handles logging in to servers etc
 
Old 10-18-2012, 04:42 PM   #18
croog
LQ Newbie
 
Registered: Feb 2006
Distribution: fedora-17-x86_64 Xfce
Posts: 29

Rep: Reputation: 1
ok so i created a smbpasswd.conf file and smbusers.conf file
is that right?

On my system it is just 'smbusers' there is no .conf or anything.
The password file should be created in the right place when you add a samba user.

i was hoping the home directories would pop up based on what un/pw i used in windows

[homes]
comment = Home Directories
read only = No
browseable = No
valid users = %S <- adding this should do it

i can see my /share folder but that is public

[share]
comment = Ubuntu File Server Share
path = /share
read only = No <- this can be omitted
create mask = 0755
guest ok = Yes
valid users = +user1 +user2 @group1 @group2 ...
^ Add this either by individual user name(samba or unix) or your group for read/write access the +'s are required for each user and the @'s for each group. then you should be able to set chmod -R 770 /share

hope that works for you
 
Old 10-18-2012, 08:30 PM   #19
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
ok ok we are getting close
i can log in with scott and tola and their home dir's show up and i can see share but i cant write to anything
only read
testparm
Load smb config files from smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[share]
comment = Ubuntu File Server Share
path = /share
valid users = +scott, +tola, @samba
create mask = 0755
guest ok = Yes

Thanks croog!
 
Old 10-18-2012, 10:04 PM   #20
croog
LQ Newbie
 
Registered: Feb 2006
Distribution: fedora-17-x86_64 Xfce
Posts: 29

Rep: Reputation: 1
[share]
comment = Ubuntu File Server Share
path = /share
valid users = +scott, +tola, @samba <-space separated list yours looks like 'scott,' to samba
create mask = 0755 <-like chmod, sets the permissions samba shows for /share
guest ok = Yes

I think that should about do it.
 
Old 10-18-2012, 11:00 PM   #21
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
i put commas in there... i'll get rid of those
and create mask should be the same value as my chmod command... 770?

the commas aren't inthe acutall config file
i can see the share dir but i can't open any dir or open any files

also the group 'samba' is in linux only and i haven't set any permission
i just created it and added scott and tola

Last edited by skinney; 10-18-2012 at 11:25 PM.
 
Old 10-19-2012, 12:39 AM   #22
croog
LQ Newbie
 
Registered: Feb 2006
Distribution: fedora-17-x86_64 Xfce
Posts: 29

Rep: Reputation: 1
Quote:
Originally Posted by skinney View Post
i put commas in there... i'll get rid of those
and create mask should be the same value as my chmod command... 770?
That sounds right to me.
Quote:
I can see the share dir but i can't open any dir or open any files
Does this include your home directories?
Quote:
also the group 'samba' is in linux only and i haven't set any permission
i just created it and added scott and tola
did you change ownership of /share to samba? 'chgrp -R samba /share'

did you restart samba? for me '/sbin/service smb restart'

If all else fails does 'chmod -R 777 /share' work?
If not you may need to configure your firewall to allow samba.
 
Old 10-19-2012, 10:08 AM   #23
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by croog View Post
Does this include your home directories?
yes, but after last changes i have wrx access to scott (this is my root acct on ubuntu)
i guess that makes a differenece b/c scott is gettign different access than tola
tola can see her folder but no wrx. she can see and open files in share but no w or x (that is fine) but i'd like her to have wrx to her home dir


Quote:
Originally Posted by croog View Post
did you change ownership of /share to samba? 'chgrp -R samba /share'
i changed this. it helped for scott

Quote:
Originally Posted by croog View Post
did you restart samba? for me '/sbin/service smb restart'
I run
scott@Medusa:~$ sudo restart smbd
smbd start/running, process 1481
scott@Medusa:~$ sudo restart nmbd
nmbd start/running, process 1492

after every set of changes

Quote:
Originally Posted by croog View Post
If all else fails does 'chmod -R 777 /share' work?
not for tola. i'll logoff and logon (it's the only way i konw how to get win to ask for un/pw to server)
ok, scott still has wrx to home dir but only r to share

we're really close!

Last edited by skinney; 10-19-2012 at 10:12 AM.
 
Old 10-19-2012, 04:56 PM   #24
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
i did 'chown -R tola /home/tola'
and she now has wr (i did't try x)

also, in the smbusers i put tola and scott but nothing about the group samba
there is a linux group called samba and scott and tola are members but samba server probably doesn't know about it.
i added it to smbusers for kicks "samba = samba"

i tried 'chown -R scott /share' to see if that would give scott wrx in the share
this would be good i think as long as tola can read /share and wrx to her home/dir (which she does)
but it didn't work

Last edited by skinney; 10-19-2012 at 06:31 PM.
 
Old 10-19-2012, 08:03 PM   #25
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
this did it
i input this...

[share]
comment = Ubuntu File Server Share
path = /share
writeable = yes
create mode = 0600
directory mode = 0700
locking = yes

testparm gave me this

[share]
comment = Ubuntu File Server Share
path = /share
read only = No
create mask = 0600
directory mask = 0700

so i went back and changed smd to match
and tola and scott have wr in share and their home dir

found it here
http://www.ghacks.net/2009/09/04/set...-samba-server/

i think that's what i need!
now i'm going to try to add a shared printer
i'll be back! lol
thank you for all your help

Last edited by skinney; 10-20-2012 at 10:36 AM.
 
Old 10-21-2012, 05:01 PM   #26
croog
LQ Newbie
 
Registered: Feb 2006
Distribution: fedora-17-x86_64 Xfce
Posts: 29

Rep: Reputation: 1
Glad you got it working.
Good luck with the printer.

You might want to check if a file created by scott can be edited/removed by tola. If not try changing your masks to include group permissions. I would guess that your current permissions only allow the user that created a file to edit it.

btw you should mark this post as solved and start a new thread if you have problems with your printer.

Last edited by croog; 10-21-2012 at 05:05 PM.
 
Old 10-21-2012, 06:01 PM   #27
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
good point, i'll check that
thanks croog!

printer isn't working.
i can't get the web interface for cups to open in a browser but that's another post...
 
Old 10-26-2012, 01:27 PM   #28
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
just noticed that i can "unsolve" this thread
so, croog you were right
when a user put a file in share that user is the owner and group so the other user doesn't have access to it

i tried...
[share]
comment = Ubuntu File Server Share
path = /share
writable = Yes
valid users = +scott +tola @samba
create mask = 0770
directory mask = 0770
guest ok = Yes

and gave recursive ownership to group 'samba'
per your instructions but same deal


i also tried it like this...

[sales]
path = /home/sales
comment = Sedona Real Estate Sales Data
writable = yes
valid users = sofie shelby adilia
admin users = mike

it's an expample from here ...
http://www.samba.org/samba/docs/using_samba/ch09.html
doesn't work

Im starting to think that the users on the windows side need to somehow be in the group 'samba'

Last edited by skinney; 10-26-2012 at 01:34 PM.
 
Old 10-26-2012, 01:47 PM   #29
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
i posted this on ubuntu forums and got a reply
force group = samba
works!
 
  


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
Need Perl script to get files from Linux Samba share folder to Windows folder kowsi Programming 1 10-10-2012 06:57 PM
how to share a folder in samba with no need of user password with write permission golden_boy615 Linux - Newbie 3 06-15-2011 09:09 PM
Best software/setup to share/access/stream files between Nix and Win7 iball8888 Linux - Software 2 12-15-2010 12:03 AM
share folder (read/write) Winanjaya Linux - Newbie 3 10-06-2008 08:24 AM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 10:22 PM


All times are GMT -5. The time now is 05:08 AM.

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