Quantcast

A samba bugfix and a question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

A samba bugfix and a question

Paolo Emilio Mazzon
Hi Don and everyone,

== Bugfix:

I've migrated from 5.1 to 5.2 and I've noticed the sambapassword is
not effective anymore. I've found the culprit being the script

packages/samba-base/etc/init.d/samba-base

not copying the generated (build script) tdb files in the correct
location. Also: why leaving the tdb.ro files in /lib ?

# BEGIN PATCH
--- a/ts/5.2/packages/samba-base/etc/init.d/samba-base
+++ b/ts/5.2/packages/samba-base/etc/init.d/samba-base
@@ -11,8 +11,8 @@ init)
         mkdir /mnt/home
  chmod 777 /var/spool/samba
 
- cat /lib/passdb.tdb.ro > /etc/samba/passdb.tdb
- cat /lib/secrets.tdb.ro > /etc/samba/secrets.tdb
+ mv /lib/passdb.tdb.ro /etc/samba/private/passdb.tdb
+ mv /lib/secrets.tdb.ro /etc/samba/private/secrets.tdb
 
  if [ -z "$SAMBA_WORKGROUP" ] ; then SAMBA_WORKGROUP=WORKGROUP ; fi
        if [ -z "$SAMBA_SECURITY" ] ; then SAMBA_SECURITY=Server ; fi

# END PATCH

== Question:

I need to add kernel support for Real Time Clock device
/dev/misc/rtc0  

I see the kernel sources in

/usr/src/kernels/3.12.18TS_SMP

Will it be possible to 'make menuconfig' there and recompile kernel
and modules by following instructions in

/ts/ports/kernel-modules/kernel-TS_SMP/Pkgfile

to include the new generated stuff in the build process? Or do I need
to prt-something or ...?

Thanks,
        Paolo

--
 ----------------------------------------------------------
|  Paolo Emilio Mazzon - POWER Systems & Network SysAdmin
|---
|  DEI - Department of Information Engineering
|  Via Gradenigo 6/B - 35131 Padova, Italy
|---
|  ✉ mazzon AT dei.unipd.it
|  ✆ +39 049 827 7675
|---
|  Putt's law:
|   Technology is dominated by two types of people:
|   those who understand what they do not manage,
|   and those who manage what they do not understand.
 ----------------------------------------------------------

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Thinstation-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/thinstation-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A samba bugfix and a question

Don Cupp
Paolo,

Thank you for the bug fix. We leave the .ro files in lib, because in cases of fastboot-lowmem, lib is ro and using mv would cause an error to be displayed.

The easiest way to change the configuration is to get the kernel to
start building and cancel it, so that it unpackages and applies
patches:

pkgmk -d -kw -f
(download the sources, keep work, force it to update)
Hit Ctrl-C when you see it start compiling
Go into work/src/linux-*
Do your preferred method of modification (generally make menuconfig)
Copy out the resulting .config back into ts.config
Optionally check with git diff ts.config
pkgmk -um (update the checksums for ts.config)
pkgmk (compile)
pkgmk -uf (update footprint)
pkgmk -u (update install)
On Thursday, May 15, 2014 5:54 AM, Paolo Emilio Mazzon <[hidden email]> wrote:
Hi Don and everyone,

== Bugfix:

I've migrated from 5.1 to 5.2 and I've noticed the sambapassword is
not effective anymore. I've found the culprit being the script

packages/samba-base/etc/init.d/samba-base

not copying the generated (build script) tdb files in the correct
location. Also: why leaving the tdb.ro files in /lib ?

# BEGIN PATCH
--- a/ts/5.2/packages/samba-base/etc/init.d/samba-base
+++ b/ts/5.2/packages/samba-base/etc/init.d/samba-base
@@ -11,8 +11,8 @@ init)
        mkdir /mnt/home
    chmod 777 /var/spool/samba

-    cat /lib/passdb.tdb.ro > /etc/samba/passdb.tdb
-    cat /lib/secrets.tdb.ro > /etc/samba/secrets.tdb
+    mv /lib/passdb.tdb.ro /etc/samba/private/passdb.tdb
+    mv /lib/secrets.tdb.ro /etc/samba/private/secrets.tdb

    if [ -z "$SAMBA_WORKGROUP" ] ; then SAMBA_WORKGROUP=WORKGROUP ; fi
        if [ -z "$SAMBA_SECURITY" ] ; then SAMBA_SECURITY=Server ; fi

# END PATCH

== Question:

I need to add kernel support for Real Time Clock device
/dev/misc/rtc0 

I see the kernel sources in

/usr/src/kernels/3.12.18TS_SMP

Will it be possible to 'make menuconfig' there and recompile kernel
and modules by following instructions in

/ts/ports/kernel-modules/kernel-TS_SMP/Pkgfile

to include the new generated stuff in the build process? Or do I need
to prt-something or ...?

Thanks,
    Paolo

--
----------------------------------------------------------
|  Paolo Emilio Mazzon - POWER Systems & Network SysAdmin
|---
|  DEI - Department of Information Engineering
|  Via Gradenigo 6/B - 35131 Padova, Italy
|---
|  ✉ mazzon AT dei.unipd.it
|  ✆ +39 049 827 7675
|---
|  Putt's law:
|  Technology is dominated by two types of people:
|  those who understand what they do not manage,
|  and those who manage what they do not understand.
----------------------------------------------------------

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Thinstation-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/thinstation-developer



------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Thinstation-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/thinstation-developer
Loading...