tag:blogger.com,1999:blog-42181943794020998952024-03-07T21:17:47.710-08:00Letter from GothamMy coding world...Letter From gothamhttp://www.blogger.com/profile/09272936367683438410noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4218194379402099895.post-24081596765332859512015-05-18T10:30:00.003-07:002015-05-18T10:40:48.717-07:00Samba 4.1 - problem with permission in Debian Wheezy (solved)First you must install: ldb-tools
<br />
<blockquote>
$ apt-get install ldb-tools</blockquote>
Adding User into Samba (smbpasswd)
<br />
<blockquote>
$ smbpasswd -a USERNAME1<br />
$ samba-tool user add USERNAME1</blockquote>
To inspect the allocated user ID and SID
<br />
<blockquote>
$ wbinfo --name-to-sid USERNAME1<br />
S-1-5-21-1380947744-608041358-3555098087-1105 SID_USER (1)<br />
$ wbinfo --sid-to-uid S-1-5-21-1380947744-608041358-3555098087-1105<br />
3000019<br />
<br />
$ ldbedit -e mcedit -H /usr/local/samba/private/idmap.ldb objectsid=S-1-5-21-1380947744-608041358-3555098087-1105<br />
<br />
<pre>
# editing 1 records
# record 1
dn: CN=S-1-5-21-1380947744-608041358-3555098087-1103
cn: S-1-5-21-1380947744-608041358-3555098087-1103
objectClass: sidMap
objectSid: S-1-5-21-1380947744-608041358-3555098087-1103
type: ID_TYPE_BOTH
xidNumber: <b>[There you write your id from /etc/passwd]</b>
distinguishedName: CN=S-1-5-21-1380947744-608041358-3555098087-1103
</pre>
</blockquote>Letter From gothamhttp://www.blogger.com/profile/09272936367683438410noreply@blogger.com1tag:blogger.com,1999:blog-4218194379402099895.post-32630794347720065112010-12-04T13:21:00.000-08:002010-12-04T13:21:06.122-08:00Red Sox have Adrian Gonzalez nowNow that the Red Sox have reached a tentative agreement to acquire Adrian Gonzalez from the Padres in exchange for right-hander Casey Kelly, first baseman However, if the Red Sox have Adrian Gonzalez now, then that window could open up a bit more. According to ESPN's Buster Olney, a deal has been reachedLetter From gothamhttp://www.blogger.com/profile/09272936367683438410noreply@blogger.com6