How to start my Samba share correctly?
Every time I reboot my system I have to use Gadmin-Samba to re-activate my Samba share and it is quite annoying.
When I start Gadmin-Samba I get this:
http://oi44.tinypic.com/10glij4.jpg
I have to deactivate first and then activate again, then my share can be accessed by other computers. Is there any way to solve this problem?
stryder wrote:I have never used gadmin-samba so cannot help you with it. If you have a fixed folder you want to share I would suggest you look for the wiki page on Samba and set up smb.conf and then put "samba" in the daemons line in your rc.conf.
Hi thanks for your replies. I did check the wiki page where is also the place I started from zero to configure Samba in my machine.
The problem in my system seems to be linked with the winbind server because in gadmin-samba's settings window I see an option to start winbind server. And I always see a message of "inactive servers: winbindd" when I open gadmin-samba.
What is this winbind or winbindd server and how do I start it automatically?
Similar Messages
-
How to access a samba share?
Hi everyone
I tried setting up a diskless folding comp to push out a few more PPD, which I did succesfully. On my windows comp when I go to Network Places I can see it in the group "Diskless"
I downloaded fahmon to see if I could monitor it, and all I had to do was type "\\Fold-2cb9\c\etc\folding\1\" for client location and I could monitor it on the windows comp...how would I veiw it from my Linux machine?I tried that and it didn't work...
I used this command:
sudo mount -t smbfs //Fold-2cb9/c ~/Fold
and this is what I got
Error connecting to 63.251.179.32 (Connection refused)
4099: Connection to Fold-2cb9 failed
SMB connection failed
Edit:
I downloaded smbnetfs and ran "smbnetfs ~/Fold/" and now I can browse through everything! Although for some reason I can't open the "Fold" folder in Thunar as soon as I try it, Thunar immediately kicks me out back into the home directory. Then I tried to type the address in Thunar's address bar and when I hit enter the folder disappeared Although when I looked at my home directory through Firefox I could see it was still there and I could browse through everything...bug maybe?
Ah well..I'm happy
Last edited by whaevr (2008-07-23 16:46:26) -
How to Start Tmocat 4.0 correctly in Win2000 ???
My OS is Win2000.
After I Installed Tomcat 4.0 and started it.Some thing confused me!
(1)I start it by Start - Program - Apache Tomcat 4.0 - Start Tomcat .
(2)I straightly press the batch file in {Tomcat-Root}/bin/Startup.bat .
The difference is that the former makes jsp running , but the later can't?
What's the reason ?Can some one help ?Hi,all
I'v tried Apache Tomcat 4.0.4 but the result is still bad.
Maybe you should look at the log file in {Tomcat}/logs/localhost_examples_log.2001-07-29.txt shown below
Actually,if i execute servlet example in brower , it wroks .
The url is " http://localhost:8080/examples/servet/HelleWorldExample ", and
"Hollo World! " prints in my brower!
But if i execute the JSP Sapmles Numberguess, execption below occurs.
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
<<Skip>>
Why i can only run servlet?
*******localhost_examples_log.2001-07-29.txt***************
2001-07-29 15:15:52 WebappLoader[examples]: Deploying class repositories to work directory C:\Tomcat\work\Standalone\localhost\examples
2001-07-29 15:15:52 WebappLoader[examples]: Reloading checks are enabled for this Context
2001-07-29 15:15:52 StandardManager[examples]: Seeding random number generator class java.security.SecureRandom
2001-07-29 15:15:52 StandardManager[examples]: Seeding of random number generator has been completed
2001-07-29 15:15:57 ContextConfig[examples]: Configured an authenticator for method FORM
2001-07-29 15:15:57 ContextListener: contextInitialized()
2001-07-29 15:15:57 SessionListener: contextInitialized()
2001-07-29 15:15:58 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@fa6f')
2001-07-29 15:15:58 StandardWrapper[examples:default]: Loading container servlet default
2001-07-29 15:15:58 default: init
2001-07-29 15:15:58 StandardWrapper[examples:invoker]: Loading container servlet invoker
2001-07-29 15:15:58 invoker: init
2001-07-29 15:15:59 jsp: init
2001-07-29 15:16:01 StandardContext[examples]: Servlet /examples threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.lang.NoSuchMethodError
at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
<< Skip >> -
Windows samba share shows "zero KB" for file size....
Upgraded, clean install, to leopard and now I see "Zero KB" for file size on my Windows Home Server samba shares. Before the upgrade all that info was displayed but afterwards that info is gone. The only changed on my network was upgrading to Leopard. My linux samba server still works perfectly with 10.5 but the windows samba shares are not. I can browse, mount and copy files to and from the windows samba shares but the file size info isn't displayed. The file size isn't even displayed when I "Get Info" on a file. Previously using 10.4 all was working perfectly and all info was displayed and or was available if I wanted it. Not sure if it is something to do with how Windows Home Server handles samba or if it is how Leopard handles windows samba shares. No settings were changed on my network from when I was running 10.4. The only change on my home network/hardware has been upgrading to Leopard! No other changes were made to any servers or computers that were previously working perfectly with 10.4. Other than this "Zero KB" issue all has gone quite smoothly.
I removed the . (and moved the directory to match) but I still have the same issue.
Here's the smbd.log after a rebooting and then restarting samba:
[2010/05/04 07:25:41.262266, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:25:41.266578, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:26:01.041577, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2010/05/04 07:26:21.051370, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown
[2010/05/04 07:26:45.716653, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2010/05/04 07:36:46.016675, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:36:46.017386, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
And log.nmbd:
[2010/05/04 07:25:41, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/05/04 07:26:48.718046, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...
[2010/05/04 07:27:26, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/05/04 07:27:26.544934, 0] nmbd/nmbd.c:696(open_sockets)
[2010/05/04 07:36:46, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010 -
How do I get samba to be wide open??
I setup my mac mini with 10.4 some time ago and something recently happened where my wife (XP user) can't get into our shared folder. She can't access itunes music either.
I've been playing around with this for a couple days and got lost on what changes I've made. Right now I'm just trying to figure out how to get the samba shares totally wide open, then worry about how to secure it. What's the best way to open it up? Here's my config files. Thanks.
[global]
encrypt passwords = yes
workgroup = WORKGROUP
display charset = UTF-8-MAC
security = user
deadtime = 5
guest account = unknown
client ntlmv2 auth = no
preferred master = no
defer sharing violations = no
allow trusted domains = no
netbios name = TNNserver
lanman auth = YES
vfs objects = darwin_acls
wins support = no
brlm = yes
max smbd processes = 0
server string = Mac OS X
os level = 8
domain logons = no
passdb backend = opendirectorysam guest
dos charset = CP437
unix charset = UTF-8-MAC
auth methods = guest opendirectory
local master = yes
domain master = no
map to guest = Never
use spnego = yes
printer admin = @admin, @staff
ntlm auth = YES
log level = 0
[Public]
oplocks = 0
map archive = no
vfs objects = darwin_acls
path = /Shared Items/Public
read only = no
strict locking = 0
inherit permissions = 1
comment = macosx
create mask = 0666
guest ok = 0
directory mask = 0777bump
-
---We are trying to setup Hyper-V on Samba shares samba version 3.6 exported from Ubuntu M/c. Basically runnig the Public(share) from the Ubuntu and able to access it from Windows 2012 (create/modify everything). I used Hyper-V and placed the disks
".vhd" on this , VM succesfull created and started. However when I placed the VM config files on this (samba) shares VM created successfully but its not starting, Its giving error like Unable to initialize the saveset -- Any idea how to place the
Hyper-V VM config files samba share?Hi Rakesh KK,
Please confirm your share meet the Serve 2012r2 Hyper-V requirement, you can refer the following KB to get more detail require conditions.
Deploy Hyper-V over SMB
http://technet.microsoft.com/en-us/library/jj134187.aspx
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Mounting samba share starts avahi, ssh and sftp at client
The problem is at the client. When i mount a samba share (with # mount), avahi is started, which starts ssh and sftp. This is wrong on many levels.
Not sure how long this has been going on, someone else already asked this on stackexchange on 11.2.15, but didn't get any answers.
Journal output immediatly after mounting (hostname, ip etc. removed):
Mär 18 01:35:51 hostname dbus[434]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Mär 18 01:35:51 hostname systemd[1]: Cannot add dependency job for unit boot.automount, ignoring: Unit boot.automount is masked.
Mär 18 01:35:51 hostname systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack Activation Socket.
Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Mär 18 01:35:51 hostname avahi-daemon[2583]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped root privileges.
Mär 18 01:35:51 hostname avahi-daemon[2583]: avahi-daemon 0.6.31 starting up.
Mär 18 01:35:51 hostname avahi-daemon[2583]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Mär 18 01:35:51 hostname dbus[434]: [system] Successfully activated service 'org.freedesktop.Avahi'
Mär 18 01:35:51 hostname systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully called chroot().
Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped remaining capabilities.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/sftp-ssh.service.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/ssh.service.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Joining mDNS multicast group on interface enp1234.IPv4 with address myip.
Mär 18 01:35:51 hostname avahi-daemon[2583]: New relevant interface enp1234.IPv4 for mDNS.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Network interface enumeration completed.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering new address record for myip on enp1234.IPv4.
Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering HINFO record with values 'X86_64'/'LINUX'.
Mär 18 01:35:52 hostname avahi-daemon[2583]: Server startup complete. Host name is hostname.local. Local service cookie is 123.
Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/ssh.service) successfully established.
Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/sftp-ssh.service) successfully established.Thanks for your answer.
snakeroot wrote:Are you sure it is actually starting ssh and ssftp or is it just having avahi advertise them as existing?
I'm not sure if anything is started, the term "Service ssh successfully established" sounds like the ssh serrver is started to me, but it might just be strange wording. What does "advertise as existing" mean?
From the snippet you quoted, it looks like the latter. Unless you have alread started socket activation for ssh or sftp, whether via systemd *.socket or inetd, I'm not sure it would actually be started.
I didn't enable anything manually.
I think you can rm/mv the sftp-ssh.service and ssh.service files /etc/avahi/services/ and prevent those services from being advertised.
OK thanks for the hint. Nontheless i would rather stop avahi from starting than configuring it.
Begin rant...
I'm a bit annoyed that avahi is starting without my permission. Seems like systemd is getting a bit overzealous with starting services. Interestingly this was one of the big problems with upstart, and was supposed to be solved with systemd. I still like systemd. -
How do I add myself to the "staff" group for a samba share?
Hi all,
I've been struggling with this for a few hours now. I searched but could not find the answer (neither here nor google).
I am trying to set up a samba share on my raspberry pi and have it accessible by all other computer on my local network (just a home network). I want it set up so that when I access the share via my linux desktop I have read/write privileges, but when other users (my family, variety of linux and windows machines) access it they have read-only access and do not have to enter a password. I am not sharing any printers. The raspberry pi and my desktop are both running arch.
I am currently able to mount the share, but I only have read-only access. In the smb.conf file it has a pre-configured section for A publicly accessible directory, but read only, except for people in the "staff" group, which is the section I have tried to use. My user name on my desktop is 'gav', and I have created a user with the same name on the pi. On both the pi and the desktop I have added 'gav' to the staff group (using groupadd and usermod -aG).
On Windows machines: a Windows 7 desktop found the share and prompted for a password, I entered my password (as 'gav') and could access files, but read-only. A windows 8 laptop couldn't see it at all.
Here are some outputs of some things:
testparm (on the pi)
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:Parameter() - Ignoring badly formed line in configuration file: i
Processing section "[sharedfiles]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = PISERVER
server string = Shared Media
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
idmap config * : backend = tdb
[sharedfiles]
comment = Proper share
path = /mnt/sambashare
write list = @staff
guest ok = Yes
I'm not sure which is the 'badly formed line', any idea how I find out?
smbtree (on desktop)
WORKGROUP
PISERVER
\\PI Shared Media
\\PI\sharedfiles Proper share
\\PI\IPC$ IPC Service (Shared Media)
ASUSROUTER
smbclient -L PI -U% (on desktop)
Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
Sharename Type Comment
IPC$ IPC IPC Service (Shared Media)
sharedfiles Disk Proper share
Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
Server Comment
PI Shared Media
Workgroup Master
ASUSROUTER DSL-N55U
PISERVER PI
WORKGROUP SHODAN
command I entered to mount share (as root)
mount -t cifs //PI/sharedfiles /media/pi -o user=gav,password=pass,workgroup=PISERVER,ip=192.168.1.199
Any help would be appreciated, please let me know if there are any more outputs I can provide.
Thank you for reading
Last edited by gav989 (2013-11-10 13:34:46)Consider using sshfs to mount your Pi from your Linux boxes. It's much easier to configure and manage than samba. It sounds like you already have your Windows machines mounting your Pi so Samba is doing its job in that respect.
More info on sshfs in the Wiki: https://wiki.archlinux.org/index.php/Sshfs
To help get you off the dime, here's a modified line from my fstab that I use to mount my Pi with:
gav@PI:/mnt/backup /mnt/rpi/backup fuse.sshfs rw,relatime,user_id=0,group_id=0,allow_other 0 0
Subsitute my mount points with yours.
For a password-less mount:
ssh-copy-id gav@PI
after you've set up ssh and generated some keys on your client box.
Here are some relevant lines from the smb.conf file on my Pi that I use for my one Windows box in the house that might help you with your write permissions:
security = user
hosts allow = 192.168.1.0/255.255.255.0
guest account = gav
; And my share setup:
[rpi]
comment = Public Stuff
path = /mnt
writable = yes
; printable = no
; write list = @krb
[torrent_dl]
path = /mnt/video/torrent_dl
writable = yes
create mask = 0770
directory mask = 0770
guest ok = Yes
case sensitive = No
read only = No
Hope this helps. -
How to remove samba share from dolphin?
Hi guys!
Can't remove samba share from dolphin. Moreover, can't found where this share mounted. mount doesn't shows that share mounted, but I can access it via smb:/192.168.1.5/share.
How to unmount this share?
Thanks in advance.Why we may never know, but you can't delete it. Right-click on the toolbar & choose customize toolbar. Drag that Share button off into a cloud of smoke & click done. No more share button.
-
Files starting with period on samba share
Hi,
Is there any way to prevent the creation of files starting with a period on a samba share? I have seen the terminal command that prevents creation of the "ds_store" files, but what i'm concerned about is the creation of the hidden .htm files and such that are created all the time on this samba share.Yes, "*defaults write com.apple.desktopservices DSDontWriteNetworkStores true*" prevents the Mac to create .DS_Store files in network shares, globally.
But I don't see what you are talking about with hidden .htm files created all the time, I do not have such problems. Maybe some web site editor do create temp files this way, but it is the way it works, I don't think it is a good idea to prevent that.
You still have the "veto files" option in Samba server configuration to prevent file patterns to be used, but I won't guarantee all applications needing access to hidden files will continue to work. -
[solved] how to start samba service?
the wiki says start smbd and nmbd daemons, but i can not find these service files. they are not provided by samba package or systemd package.
seems these service files were once provided by systemd-arch-units package which is no longer in the repo. but i am not sure about this, it's just a deduction from google search results.
the question is simple: what can i do to start a samba server now?
---EDIT---
seems i made a mistake here. i installed samba and systemctl failed to auto-complete smbd.service. it's all working now. thank you all.
Last edited by AugustePop (2013-01-06 14:04:53)AugustePop wrote:the wiki says start smbd and nmbd daemons, but i can not find these service files. they are not provided by samba package or systemd package.
Bit of an odd statement...
https://www.archlinux.org/packages/extra/x86_64/samba/
Package Contents
... snip ...
usr/lib/systemd/
usr/lib/systemd/system/
usr/lib/systemd/system/nmbd.service
usr/lib/systemd/system/smbd.service
usr/lib/systemd/system/winbindd.service
usr/lib/tmpfiles.d/
.. snip ...
Did you install the samba package? -
Samba share shows up only after I restart samba
I've been setting up a laptop with Arch to use at work and home. The problem is I can not see my samba share until I restart the samba service. The server is available though. I can connect with \\IPADDRESS\SHARE. It's just not listed under Network Places or smbtree.
I have samba under DAEMONS in rc.conf and I've tried starting it in rc.local too. But even if I leave it out of those and start samba manually, I have to restart samba before the share will show up on any client.
The clients are Arch, Windows, and Ubuntu and the share is not available any of them. And the problem happens when I'm at work or at home. I've been googling, but I can't find much about a share being available but not being listed.
My /etc/samba/smb.conf:
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = MYWORKGOUP
# server string is the equivalent of the NT Description field
server string = Work Files
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = user
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.0. 192.168.1. 127.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# you may wish to override the location of the printcap file
; printcap name = /etc/printcap
# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
; printcap name = lpstat
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
; printing = cups
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
; realm = MY_REALM
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
; passdb backend = tdbsam
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
; include = /usr/local/samba/lib/smb.conf.%m
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
# Allow Symlinks (Needed this option after 3.4.6 due to security issues)
unix extensions = no
#============================ Share Definitions ==============================
;[homes]
; comment = Home Directories
; browseable = no
; writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
wins support = no
;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = no
# Set public = yes to allow user 'guest account' to print
; guest ok = no
; writable = no
; printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = no
; printable = no
; write list = @staff
# Other examples.
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
[mike]
comment = Work Files
path = /home/MYUSER/.samba_share
valid users = MYUSER
available = yes
browsable = yes
public = yes
writable = yes
# Needed this option after 3.4.6 due to security issues
wide links = yesI removed the . (and moved the directory to match) but I still have the same issue.
Here's the smbd.log after a rebooting and then restarting samba:
[2010/05/04 07:25:41.262266, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:25:41.266578, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:26:01.041577, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2010/05/04 07:26:21.051370, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown
[2010/05/04 07:26:45.716653, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2010/05/04 07:36:46.016675, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/05/04 07:36:46.017386, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
And log.nmbd:
[2010/05/04 07:25:41, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/05/04 07:26:48.718046, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...
[2010/05/04 07:27:26, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/05/04 07:27:26.544934, 0] nmbd/nmbd.c:696(open_sockets)
[2010/05/04 07:36:46, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010 -
Best options for migrating Samba shares to DFS
My team is in the process of setting up a new domain for our organization. We want to slowly migrate users from non-AD accounts and workstations to AD (2012). One of the pieces we are having trouble coming to a consensus on is the best method(s) for migrating
the Samba shares from our RHEL server to DFS.
One idea was to join the Samba server to the domain then add the shares into DFS to allow the non-AD users to continue to use the old server and the new users to use the DFS server. As we had time (small team) we would join the individual workstations, have
the users start using their AD credentials, and move their mapped drives to the DFS share. Later, we could add a DFS server for replication and eventually drop the Samba server once everyone was migrated.
Another opinion that we should simply copy the departmental shares across to the DFS server and move whole departments rather than individual users, locking down the old Samba shares as we go.
These are pretty much theoretical at this point as I can't seem to find any documentation on how best to migrate from Samba to DFS. I would appreciate ideas.
Thanks.Hi,
You could map drives to old server using the DFS server credential:
net use \\DFS server\\share Z: /user:domain\username password
Then run the robocopy command to migrate the shared folder from the old server to the DFS server:
robocopy “\\source server\drive$\folder path” Z:\ /COPYALL /B /SEC /MIR /R:0 /W:0 /LOG:c:\logs\robolog.txt /NFL /NDL
For more detailed information about the robocopy command, you could refer to the artice below:
Robocopy
http://technet.microsoft.com/en-us/library/cc733145.aspx
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Error -6602 while connecting to samba shares.
Hi everyone, i have some problems with samba client on MacOSX 10.5.8, the problem is that it connects to some shares and some not, and I don't know why, please help.
Here is my samba configurations on Ubuntu server, the problem starts after logging as a user kuba with password, it shows Erro -6602. Login and pass are correct, I use them with a parallel desktops windows xp, and it works. Mac is working with other server which stands on PLD Linux. I don't know if it will be usefull but if i can tell you that password doesn't contain any special chars, the only one is undescore char. The same password and user with some additional letters works on PLD.
I can connect to samba shares on this server with smbtree command, if I use
smbclient //server/share -U user with a password authentication it shows a wrong password (but it's correct).
When I delete the valid user definition I can connect to samba, but only with a readonly mode...
[global]
netbios name = ubunteon
server string = ubunteon
workgroup = *********
announce as = NT Server
announce version = 4.9
security = share
encrypt passwords = yes
update encrypted = no
unix password sync = no
smb passwd file = /etc/samba/smbpasswd
logon script = startup.bat
logon drive =
add user script = sudo /usr/sbin/useradd -g smbusers %u
delete user script = sudo /usr/sbin/userdel -r %u
add group script = sudo /usr/sbin/groupadd %g
delete group script = sudo /usr/sbin/groupdel %g
add user to group script = sudo /usr/sbin/usermod -G %g %u
add machine script = sudo /usr/sbin/useradd -g smbmachines -c 'Konto komputera %I' -s /bin/false -d /var/lib/samba/nobody %u
passwd chat debug = no
passwd chat = New*UNIX*password %n\n ReType*new*UNIX*password %n\n passwd:*all*authentication*tokens*updatedsuccess fully*
passwd program = /usr/bin/smbpasswd -L -a %u
nt acl support = no
nt pipe support = yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
log level = 1
os level = 255
domain logons = no
preferred master = yes
domain master = yes
local master = yes
time server = yes
browse list = yes
enhanced browsing = yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = no
winbind separator = +
unix charset = UTF8
display charset = UTF8
dos charset = CP852
wins support = yes
read raw = yes
write raw = yes
oplocks = no
level2 oplocks = no
max xmit = 65535
getwd cache = yes
dos filetimes = yes
dos filemode = yes
dos filetime resolution = yes
deadtime = 15
default case = lower
preserve case = yes
short preserve case = yes
case sensitive = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384
dns proxy = no
name resolve order = hosts lmhosts wins bcast
guest account = guest
admin users = smbroot
invalid users = root
load printers = yes
printing = cups
printcap name = cups
[www]
comment = Webpages
path = /home/user/public_html
public = no
read only = no
browseable = no
create mask = 0755
directory mask = 0755
valid users = user
browseable = yes
writeable = yes
#printable = yes
[devel]
comment = Development Zone
path = /home/user/0-Developement
public = no
read only = no
browseable = no
create mask = 0755
directory mask = 0755
valid users = user
browseable = yes
writeable = yes
#printable = yes
[pdfprints]
comment = Development Zone
path = /home/user/PDF
public = no
read only = no
browseable = no
create mask = 0755
directory mask = 0755
valid users = user
browseable = yes
writeable = yes
#printable = yes
[home]
comment = Home
path = /home/user
public = no
read only = no
browseable = yes
writeable = yes
valid users = user
[oferty]
comment = Oferty
path = /home/user/public_html/2-Oferty
public = no
read only = no
browseable = yes
writeable = yes
valid users = user
#udostepnienia widziane przez wszystkich
#drukarki
[printers]
comment = Drukarki sieciowe
browseable = no
path = /var/spool/samba
printable = yes
writable = no
create mode = 0700
#drivery do drukarek sieciowych
[print$]
path = /srv/samba/printers
guest ok = yes
browseable = no
read only = yes
write list = smbroot
#katalog domowy
--------------------------------------------------------------Hi Ramya,
Following checks may help to resolve the issue.
1) Whether Port 21 is open and allowed to connect with FTP.
2) Ping, FTP and telnet possible from PI box to FTP.
3) User mentioned in Communication channel have authorization for read and write on FTP server.
4) FTP ports are open.
5) Firewall setting done properly. -
Hi,
I have a Samba-Server (3.0.28a) on a Linux machine running with shares for
Windows- and Mac-Users.
All new files and directories that was saved on the
server have the right permissions during the
configuration file smb.conf and the parameters
"create mask" and "directory mask".
Since the update to Leopard for the Mac, the permissions
will be ignored. Every file copied from the Mac to the
server have the permission 0644 and directories 0755
independet of "create mask = 0640" and "directory mask = 0750"
of the smb.conf configuration. The permissions of files,
copied with Windows to the Samba server are good.
Tests with the parameters like "force create mode" and
"force directory mode" have no success. The user permissions
are the same and doesn't changed.
1. Is there a bug in Mac OS 10.5.2 (Leopard) to work with Samba shares,
or a problem with ACLs? Because Tiger doesn't use ACLs (i think so) and all was fine, but in the Samba configuration ACL support is switched on.
Sometimes the finder (Leopard) doesn't show directories and files on shares, after a reboot of the Mac the objects are available again!? For me it's look
like an inconsistent performance.
2. Or is there a change in the permission technology
by Leopard, where is a different handling in Samba necessary?
Thank you and
best regards
oelaugeThere is a change in Samba and the Leopard SMB client that can have adverse affects on how ACLs are interpreted. Filesystem ACLs have been supported starting in Mac OS X 10.4, so that hasn't changed directly in 10.5.
But this problem would be a server-side problem on your Linux box. Here's why:
Whenever files are copied, Mac OS X uses the following protocol: the POSIX permission bits of the copy are always retained. In other words, if the original file is 0755, then the copy will be 0755; however, the POSIX owner will be changed to the currently connected user. (Currently-connected can mean the user who logged in for cases where no permission masking applies. These cases will be limited to situations where the server and client are part of a common directory domain, such as Active Directory or Open Directory. For all other situations, masked permissions apply, and the currently logged-in user receives the permissions assigned to the user who connected to the share point.) Typically, the POSIX group is changed to match the group of the destination container (the folder that will hold the copy).
So, let's say Joey copies this file (to which Joey can only read):
SomeFile.txt
POSIX owner: Sally
POSIX group: SallyandFriends
POSIX permissions: 0644
...to this folder on the SMB server where Joey connected as snoopy, and snoopy is a member of peanuts...
ServerFolder
POSIX owner: linus
POSIX group: peanuts
POSIX permissions: 0777
...thus, Joey's copy should look like this:
SomeFile.txt - copy
POSIX owner: snoopy (because Joey connected to the server as snoopy - these are masked permissions)
POSIX group: peanuts (inherited from the parent)
POSIX permissions: 0755 (preserved)
The create and directory masks are for newly-created files and folders on the server, but not copied files or folders!
The real solution here would be to enable ACLs on your Linux server volume.
--Gerrit
Maybe you are looking for
-
Hi please advice on the keyword cleanup founc ina try and entry
Hiii TRY . lst_ykomv-kbetr = lv_ptemp2dp. * Catching the exception in case the value is too big to be assign to kbetr CATCH cx_sy_conversion_overflow INTO cxl_oref. lv_text = cxl_o
-
DMEE tree: to split the details to 2 type; payment and invoices
my client requests to have new set of payment format. the header footer stil same, but on the details, they request to split to 2 type; P-payment and I-invoice. the flow will be like below: H,P P,ACH,ON,,,, MY,KUL,312148938785,25/01/2006,XXXXXX BERHA
-
Goods Movements with Handling Units
Hi: Any one knows how can I get make Goods Movement with Handling Units inter plants? I am trying by VLMOVE but this Tcode just has process for into a Plant not for Transfer posting plant to plant., so, I need give out for materials in Handling Unit
-
How to reduce the length of lines in Smartform windows
Hi, In smartform Mainwindow or any window, how to draw the vertical lines and horizontal lines and how to reduce the lengths...very urgent please explain. Thanks and Regards, surya
-
Script Used for ARE ??
Hii, Plz let me know Which standard Program and Script is used for ARE (Application For Removal of Excisable goods for Export by Air/Sea/Post/Land)... and Its coming under which Output Type in T-Code NACE Thanks in Advance Satyabrata