Displaying 20 results from an estimated 114 matches for "private_dir".
2019 Feb 20
4
Error NT_STATUS_CONNECTION_REFUSED
...ON_REFUSED)
looks like its not even running...
ps ax | egrep "samba|smbd|nmbd|winbindd"
1965 pts/0 S+ 0:00 grep -E --color=auto samba|smbd|nmbd|winbindd
# smbd -b | grep "CONFIGFILE"
CONFIGFILE: /etc/samba/smb.conf
# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
LOCKDIR: /var/run/samba
STATEDIR: /var/lib/samba
CACHEDIR: /var/cache/samba
PRIVATE_DIR: /var/lib/samba/private
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP...
2018 Feb 12
2
Not your typical domain migration
Hi Guys,
I have three Samba file servers running different versions of CentOS and
Samba. They are all joined to a proper Windows 2003 domain.
I'd like to migrate the WIndows domain to 2016 and all the Linux servers to
CentOS 7.
I can do Windows 2003->2012->2016 without too much trouble.
I'm concerned about the Samba side. The servers are all using extended
file system
2018 Jun 10
2
Samba Time Synchronisation wikipage
...BASE: /usr/local/samba/var
LMHOSTSFILE: /usr/local/samba/etc/lmhosts
DATADIR: /usr/local/samba/share
MODULESDIR: /usr/local/samba/lib
LOCKDIR: /usr/local/samba/var/lock
STATEDIR: /usr/local/samba/var/locks
CACHEDIR: /usr/local/samba/var/cache
PIDDIR: /usr/local/samba/var/run
PRIVATE_DIR: /usr/local/samba/private
CODEPAGEDIR: /usr/local/samba/share/codepages
SETUPDIR: /usr/local/samba/share/setup
WINBINDD_SOCKET_DIR: /usr/local/samba/var/run/winbindd
WINBINDD_PRIVILEGED_SOCKET_DIR: /usr/local/samba/var/lib/winbindd_privileged
NTP_SIGND_SOCKET_DIR: /usr/local/samba/va...
2017 Feb 09
2
Users list and the date the password will expire
I am running this on a CentOS 6.7 DC with Samba version 4.2.5.
Ole
On 09.02.2017 13:40, Ole Traupe via samba wrote:
> Actually, there were 2 problems. These lines work for me:
>
> #user=$(echo "${user}" | awk -F '\\' '{print $2}')
> user_expire_date=$(ldbsearch --url="${LDBDB}" -b "${domainDN}" -s
> sub
>
2017 Aug 12
0
Samba 4.6 replication issue (WERR_FILE_NOT_FOUND)
...IGFILE: /etc/samba/smb.conf
NCALRPCDIR: /run/samba/ncalrpc
LOGFILEBASE: /var/log/samba
LMHOSTSFILE: /etc/samba/lmhosts
DATADIR: /usr/share
MODULESDIR: /usr/lib64/samba
LOCKDIR: /var/lib/samba/lock
STATEDIR: /var/lib/samba
CACHEDIR: /var/lib/samba
PIDDIR: /run
PRIVATE_DIR: /var/lib/samba/private
CODEPAGEDIR: /usr/share/samba/codepages
SETUPDIR: /usr/share/samba/setup
WINBINDD_SOCKET_DIR: /run/samba/winbindd
WINBINDD_PRIVILEGED_SOCKET_DIR: /var/lib/samba/winbindd_privileged
NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd
`samba -b` from dc2:
Samb...
2019 Nov 13
2
"samba-tool backup offline" stuck
On 2019-11-13 09:30, Andrew Bartlett wrote:
> Regarding your problem, on linux I use lslocks to debug from here, you
> can normally work out which process is holding the lock, which lock it
> is waiting on (if any, marked with a *) and gdb that to work out what
> is the matter with it, and perhaps why it is in that situation.
Hmm...
I have no lslocks on FreeBSD; will lsof do?
In
2017 Jul 10
2
using samba with bind dlz
...python2.7/site-packages/samba/provision/sambadns.py
Update: It is failing in create_samdb_copy specifically here:
# Copy root, config, schema partitions (and any other if any)
# Since samdb is open in the current process, copy them in a child
process
try:
tdb_copy(os.path.join(private_dir, "sam.ldb"),
os.path.join(dns_dir, "sam.ldb"))
for nc in partfile:
pfile = partfile[nc]
tdb_copy(os.path.join(private_dir, pfile),
os.path.join(dns_dir, pfile))
Let me try and figure out what his is doing and...
1998 Jul 02
1
Synchronize Unix/SMB passwords with 'synchpasswd'
...ny "adverse" behavior of
# this script. USE AT YOUR OWN RISK !!
#
#
# Modify these definitions to match your site's installation, and
# your preferences.
#
$smb_passwd = "/usr/local/samba/private/smbpasswd"
$add_script = "/usr/local/samba/bin/addtosmbpass"
$private_dir = "/usr/local/samba/bin/private"
$system_id = 99; # Remove user ID's below this value from SMB
#
# Let's go...
#
use Text::ParseWords; # For the 'quotewords' function
chdir($private_dir);
#
# Scan through /etc/passwd. Create an array of names to pass to
# 'addto...
2017 Jul 10
2
using samba with bind dlz
...Update: It is failing in create_samdb_copy specifically here:
>>
>> # Copy root, config, schema partitions (and any other if any)
>> # Since samdb is open in the current process, copy them in a child
>> process
>> try:
>> tdb_copy(os.path.join(private_dir, "sam.ldb"),
>> os.path.join(dns_dir, "sam.ldb"))
>> for nc in partfile:
>> pfile = partfile[nc]
>> tdb_copy(os.path.join(private_dir, pfile),
>> os.path.join(dns_dir, pfile))
>...
2017 Jan 26
2
getent problems with new Samba version
...;
wherein all the Samba DNS stuff was originally created. I've modified my /etc/named.conf to
now point to /var/lib/samba/private and will remove /etc/samba/private when I'm sure of this.
This "change" affects a lot of stuff!! :(
> What does 'samba -b' show for 'PRIVATE_DIR' ?
$ samba -b
Samba version: 4.4.8
Build environment:
Build host: Linux hive64 4.4.38 #1 SMP Sun Dec 11 15:57:21 CST 2016 x86_64 AMD Phenom(tm)
II X6 1100T Processor AuthenticAMD GNU/Linux
Paths:
:
:
PRIVATE_DIR: /var/lib/samba/private
Same as the `testparm -v` Gaiseric had me run.
&g...
2018 Jun 20
2
Roaming profiles
...mdal libnss-winbind
/etc/init.d/winbind stop
/etc/init.d/samba stop
nano /etc/krb5.conf https://pastebin.com/rkBPJ2Wz
nano /etc/samba/smb.conf https://pastebin.com/h1cJZ6sM
nano /etc/nsswitch.conf https://pastebin.com/gxK2rJLU
getent hosts fs
smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
rm -v /var/run/samba/*.tdb /var/run/samba/*.ldb /var/lib/samba/*.tdb
/var/lib/samba/*.ldb /var/cache/samba/*.tdb /var/cache/samba/*.ldb
/var/lib/samba/private/*.tdb /var/lib/samba/private/*.ldb
reboot
net ads join -U administrator
/etc/init.d/winbind start
wbinfo --ping-dc
getent passwd
ge...
2019 Jul 13
2
rsync alternative -- smbclient?
..._SysVol_replication_workaround
--- begin ---
#!/bin/bash
# prerequisite: apt-get install smbclient ldb-tools
realminfo=`cat /etc/samba/smb.conf | grep realm | tr -d "' " `
domain=`echo $realminfo | sed -n -E 's/realm=(.*)/\1/p' | tr A-Z a-z`
privatedir=`smbd -b | grep "PRIVATE_DIR" | sed -n -E 's/PRIVATE_DIR:(.*)/\1/p' | xargs`
sysvol=`cd $privatedir/..;pwd`/sysvol
pdc=`samba-tool fsmo show | grep PdcEmulation | sed -n -E 's/PdcEmulationMasterRole owner: CN=NTDS Settings,CN=([^,]*),.*/\1/p'`
peer=`ldbsearch --cross-ncs -H $privatedir/sam.ldb "(samA...
2007 Sep 24
2
Where is the tdbsam password database file?
.../sbin
BINDIR: /usr/bin
SWATDIR: /usr/share/swat
CONFIGFILE: /etc/samba/smb.conf
LOGFILEBASE: /var/log/samba
LMHOSTSFILE: /etc/samba/lmhosts
LIBDIR: /usr/lib/samba
SHLIBEXT: so
LOCKDIR: /var/lib/samba
PIDDIR: /var/run
SMB_PASSWD_FILE: /var/lib/samba/private/smbpasswd
PRIVATE_DIR: /var/lib/samba/private
System Headers:
HAVE_SYS_ACL_H
HAVE_SYS_CDEFS_H
HAVE_SYS_FCNTL_H
HAVE_SYS_IOCTL_H
HAVE_SYS_IPC_H
HAVE_SYS_MMAN_H
HAVE_SYS_MOUNT_H
HAVE_SYS_PARAM_H
HAVE_SYS_PRCTL_H
HAVE_SYS_QUOTA_H
HAVE_SYS_RESOURCE_H
HAVE_SYS_SELECT_H
HAVE_SYS_SHM_H...
2015 Feb 25
2
smb.conf filepaths
...of the compiled-in filepaths below be overrdden in smb.conf? I
can't find documentation for the required smb.conf equivilents. If someone
could supply them or post a link, I'd be very greatful.
SBINDIR
BINDIR
SWATDIR
CONFIGFILE
LOGFILEBASE
LMHOSTSFILE
LIBDIR
LOCKDIR
PIDDIR
SMB_PASSWD_FILE
PRIVATE_DIR
2017 Mar 26
0
Users list and the date the password will expire
...serPasswordExpiryTimeComputed. I've changed
my subject line to be the same as the other in that thread.
I found and tried the scripts discussed. It works perfectly ... on the AD/DC host.
I need it to work on a domain member. The command: `samba -b` run on the domain members does
indeed return PRIVATE_DIR, in my case /var/lib/samba/private. But,
ldbsearch --url="/var/lib/samba/private/sam.ldb" -b "DC=hprs,DC=local" -s sub "(&(objectCategory=person)(objectClass=user)(sAMAccountName=mark))" msDS-UserPasswordExpiryTimeComputed
returns 0 records. Certainly because th...
2017 Apr 11
2
Restore samba3x files NT4 style to samba4x NT4 Style?
Hi.
I'm working in migrate my current samba3x PDC NT4 style to samba 4.x same
style.
What files do I need to move from /var/lib/samba/ to my new server?
Thanks.
--
LIving the dream...
2018 Feb 12
0
Not your typical domain migration
...rs and rsync the files/acls but how do I ensure the
> permissions don't get lost and continue to work? getfacl/setfacl?
> Something else?
IDs of domain users and groups: No real reason to worry here. See above.
Local Samba users on your domain member: Copy the passdb.tdb file stored
in PRIVATE_DIR (# smbd -b | grep PRIVATE_DIR) to the new host.
Files: Use a tool that preserves the permissions when you copy the
files. For POSIX ACLs, this should be supported by all tools. For
fine-granular Windows ACLs, you need to make sure that you preserve the
extended attributes as well. For example, if...
2019 Feb 20
0
Error NT_STATUS_CONNECTION_REFUSED
...even running...
>
> ps ax | egrep "samba|smbd|nmbd|winbindd" 1965 pts/0 S+ 0:00
> grep -E --color=auto samba|smbd|nmbd|winbindd
>
> # smbd -b | grep "CONFIGFILE" CONFIGFILE: /etc/samba/smb.conf
>
> # smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR" LOCKDIR:
> /var/run/samba STATEDIR: /var/lib/samba CACHEDIR: /var/cache/samba
> PRIVATE_DIR: /var/lib/samba/private
i guess you are supposed at least to know how to start services in the
howto
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCAAdFiEEnStGzbwUCjZ1OuTXMxdNWliSt7gFAlxtsVMACgkQMxdNWl...
2019 Nov 21
0
"samba-tool backup offline" stuck
...> # on the secrets.ldb file before backing up that file and secrets.tdb
> def backup_secrets(self, private_dir, lp, logger):
> secrets_path = os.path.join(private_dir, 'secrets')
> secrets_obj = Ldb(secrets_path + '.ldb', lp=lp)
> logger.info('Starting transaction on ' + secrets_path)
> secrets_obj.transaction_start()
> self.offl...
2019 Nov 21
1
"samba-tool backup offline" stuck
...> > # on the secrets.ldb file before backing up that file and secrets.tdb
> > def backup_secrets(self, private_dir, lp, logger):
> > secrets_path = os.path.join(private_dir, 'secrets')
> > secrets_obj = Ldb(secrets_path + '.ldb', lp=lp)
> > logger.info('Starting transaction on ' + secrets_path)
> > secrets_obj.transaction_start()
&g...