Monday, May 18, 2015

Samba 4.1 - problem with permission in Debian Wheezy (solved)

First you must install: ldb-tools
$ apt-get install ldb-tools
Adding User into Samba (smbpasswd)
$ smbpasswd -a USERNAME1
$ samba-tool user add USERNAME1
To inspect the allocated user ID and SID
$ wbinfo --name-to-sid USERNAME1
S-1-5-21-1380947744-608041358-3555098087-1105 SID_USER (1)
$ wbinfo --sid-to-uid S-1-5-21-1380947744-608041358-3555098087-1105
3000019

$ ldbedit -e mcedit -H /usr/local/samba/private/idmap.ldb objectsid=S-1-5-21-1380947744-608041358-3555098087-1105

# 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: [There you write your id from /etc/passwd]
distinguishedName: CN=S-1-5-21-1380947744-608041358-3555098087-1103

Saturday, December 4, 2010

Red Sox have Adrian Gonzalez now

Now 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 reached