Displaying 20 results from an estimated 24 matches for "usergid".
Did you mean:
user_id
2020 Sep 25
4
Debian client/workstation pam_mount
...I am using it on Fedora with Volume Definition looking like this:
and I use this:
<volume fstype="cifs"
??????? server="CIFS_SERVER_FQDN"
??????? path="linprofiles"
??????? mountpoint="/mnt/%(USER)"
options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
>
<not> <uid>0-9999</uid> </not> </volume>
I do not use sssd and it mounts at user logon.
Rowland
2018 May 30
1
Scripting the next UID/GID number to use
...m,$baseDN
msSFU30MaxUidNumber | grep 'msSFU30MaxUidNumber:')
if [ -z "$userUid" ]; then
userUid="$baseUid"
else
userUid=$(echo $userUid | sed 's/^msSFU30MaxUidNumber: \(.*\)/\1/')
fi
# get the gid #
strgid=$(wbinfo --group-info="$userClassGroup")
userGid=$(echo $strgid | cut -d ":" -f 3)
#################
#create the user
#################
echo "Creating s4 posix user $userName"
# create the user #
samba-tool user create $userName --userou=$userClassDN --random-password \
--profile-path="\\\\${userServer}\\${profileShare...
2020 Sep 25
3
Debian client/workstation pam_mount
...t;volume fstype="cifs"
> > server="domain-server2.policia2.rionegro.gov.ar"
> > path="FS_PRUEBA_3"
> > mountpoint="/home/POLICIA2/prueba3/compartido"
> > Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(GRUPO3)"
> > >
>
> No, 'domain=GRUPO3', not 'domain=%(GRUPO3)'
>
> I also take it that 'FS_PRUEBA_3' is the sharename on the server.
>
> Rowland
>
>
>
> --
> To unsubscribe from this list go to the following URL and...
2020 Sep 25
3
Debian client/workstation pam_mount
...pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<pam_mount>
<volume fstype="cifs"
server="domain-server2"
path="FS_PRUEBA_3"
mountpoint="/home/prueba3/compartido"
options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
>
<not> <uid>0-9999</uid> </not> </volume>
<!-- ... -->
</pam_mount>
El vie., 25 sept. 2020 a las 10:44, Rowland penny via samba (<
samba at lists.samba.org>) escribi?:
> On 25/09/2020 14:09, jmpatagonia via sam...
2004 Sep 21
2
Corrupted userid in mail folders - Crisis
...cipal reported that she had
received other people's mail. So I ran the following script to reset all
the folders:
#!/bin/bash
export IFS=:
echo "Auto-creating home directories for windows domain users"
getent passwd|grep ":10[0-9][0-9][0-9]"|while read USER FLAG USERUID USERGID
USER_LONG USERHOME USERSHELL; do
if [ -e $USERHOME ]; then
echo "Setting ownership of existing $USERHOME"
chown -R $USERUID.$USERGID $USERHOME
else
echo "Creating $USERHOME for $USER with $USERUID/$USERGID"...
2018 May 30
2
Scripting the next UID/GID number to use
On Wed, 30 May 2018 10:33:55 +0200
Marco Gaiarin via samba <samba at lists.samba.org> wrote:
> Mandi! Rowland Penny via samba
> In chel di` si favelave...
>
> > > So, in AD LDAP lingo, a 'modify' is not atomic, and a 'delete/add'
> > > yes?
>
> Ahem, i meant:
>
> So, in AD LDAP lingo, a 'replace' is not atomic, and a
2020 Sep 25
2
Debian client/workstation pam_mount
...conf.xml.dtd">
<pam_mount>
<volume fstype="cifs"
server="domain-server2.policia2.rionegro.gov.ar"
path="FS_PRUEBA_3"
mountpoint="/home/POLICIA2/prueba3/compartido"
Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(GRUPO3)"
>
<not> <uid>0-9999</uid> </not> </volume>
<!-- ... -->
</pam_mount>
On the domain, list users on the group GRUPO3
root at domain-server2:~# samba-tool group listmembers "GRUPO3"
WARNING: No path in service sudo - mak...
2020 Sep 26
2
Debian client/workstation pam_mount
.../security/pam_mount.conf.xml
> <debug enable="2" />
> <volume fstype="fuse"
> server="mbr04.subdom.example.com"
> path="/public"
> mountpoint="/home/test2/dtshare"
>
> options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
> ssh="0" noroot="0" />
>
Per Dr. Naumer suggestion, I removed "password_stdin" but failure remained
the same (so, put it back in.)
I...
2020 Sep 25
0
Debian client/workstation pam_mount
...at lws4:~# cat /etc/security/pam_mount.conf.xml
<debug enable="1" />
<volume fstype="fuse"
server="mbr04.subdom.example.com"
path="/srv/samba/public"
mountpoint="/home/test2/dtshare"
options=""username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
ssh="0" noroot="0" />
"tail -f /var/log/syslog" ends with:
Sep 25 06:39:54 lws4 systemd[1]: home-test2-dtshare.mount: Mounting timed
out. Terminating...
2007 Jul 10
1
mounting an AD share upon login
...tpoint 1
fsckloop /dev/loop7
luserconf .pam_mount.conf
options_allow nosuid,nodev
options_deny suid,dev
options_require nosuid,nodev
lsof /usr/bin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKTARGET)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"user=%(USER),uid=%(USERUID),gid=%(USERGID)%(before=\",\" OPTIONS)"
smbmount /usr/bin/smbmount //%(SERVER)/%(VOLUME) %(MNTPT) -o
"username=%(USER),uid=%(USERUID),gid=%(USERGID)%(before=\",\" OPTIONS)"
smbumount /usr/bin/smbumount %(MNTPT)
umount /bin/umount %(MNTPT)
volume * cifs WIN2003 & /home/PRI...
2020 Sep 25
2
Debian client/workstation pam_mount
...e="fuse"
> >> server="mbr04.subdom.example.com <http://mbr04.subdom.example.com>"
> >> path="/srv/samba/public"
> >> mountpoint="/home/test2/dtshare"
> >>
> options=""username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
>
> >>
> >> ssh="0" noroot="0" />
> >>
> >> "tail -f /var/log/syslog" ends with:
> >> Sep 25 06:39:54...
2018 Jan 16
3
Avoiding uid conflicts between rfc2307 user/groups and computers
Mandi! Kacper Wirski via samba
In chel di` si favelave...
> I understand the OP, I was asking some time ago similar question, but it was
> in relation to samba domain member.
Thanks, Kacper.
> I couldn't get backend: ad to work for
> machine accounts, so i switched to idmap: rid and it solved everything. I
> tried manually adding UID and GID to Domain Computer group and to
2018 Jan 17
0
Avoiding uid conflicts between rfc2307 user/groups and computers
...ystem,$baseDN
msSFU30MaxUidNumber | grep 'msSFU30MaxUidNumber:')
if [ -z "$userUid" ]; then
userUid="$baseUid"
else
userUid=$(echo $userUid | sed 's/^msSFU30MaxUidNumber: \(.*\)/\1/')
fi
# get the gid #
strgid=$(wbinfo --group-info="$pgroupName")
userGid=$(echo $strgid | cut -d ":" -f 3)
# create the user #
samba-tool user create $userName --userou=$userDN --random-password \
--profile-path="\\\\$accountServerDns$winProfilePath\\$pgroupNameR\\$userName" \
--home-directory="\\\\$accountServerDns$winHomePath$winHomeDir\\$pg...
2019 Oct 25
1
net ads join -- strange message
...<mntoptions allow="nosuid,nodev,loop,encryption,fsck" />
<mntoptions require="nosuid,nodev" />
<lsof>/usr/bin/lsof %(MNTPT) </lsof>
<cifsmount> /sbin/mount.cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"user=%(USER),domain=SAMBADOM,uid=%(USER),gid=%(USERGID),cifsacl,file_mode=0700,dir_mode=0700"
</cifsmount>
<umount>/bin/umount %(MNTPT) </umount>
<volume
options="username=%(DOMAIN_USER),workgroup=%(DOMAIN_NAME),uid=%(DOMAIN_USER),fmask=700,file_mode=0700,dir_mode=0700"
mountpoint="/etudiants/%(USER)" pa...
2020 Sep 25
2
Debian client/workstation pam_mount
..."1" />
> <volume fstype="fuse"
> server="mbr04.subdom.example.com <http://mbr04.subdom.example.com>"
> path="/srv/samba/public"
> mountpoint="/home/test2/dtshare"
> options=""username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
> ssh="0" noroot="0" />
>
> "tail -f /var/log/syslog" ends with:
> Sep 25 06:39:54 lws4 systemd[1]: home-test2-dtshare.mount: Mounting
&g...
2020 Sep 25
0
Debian client/workstation pam_mount
...oblems
>
I think your pam_mount file will contain something like this:
<volume fstype="cifs"
??????? server="domain-server2"
??????? path="FS_PRUEBA_3"
??????? mountpoint="/home/prueba3/compartido"
options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
??????? />
If it does, then change 'domain-server2' to the FQDN, e.g.
'domain-server2.example.com'
Rowland
2020 Sep 25
0
Debian client/workstation pam_mount
...working
>
> <volume fstype="cifs"
> server="domain-server2.policia2.rionegro.gov.ar"
> path="FS_PRUEBA_3"
> mountpoint="/home/POLICIA2/prueba3/compartido"
> Options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(GRUPO3)"
> >
No, 'domain=GRUPO3', not 'domain=%(GRUPO3)'
I also take it that 'FS_PRUEBA_3' is the sharename on? the server.
Rowland
2020 Sep 26
0
Debian client/workstation pam_mount
...quot;, I see this:
>
OK, try this in /etc/security/pam_mount.conf.xml:
<volume fstype="cifs"
??????? server="mbr04.subdom.example.com"
??????? path="public"
??????? mountpoint="/home/test2/dtshare"
options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=DOMAIN_NAME"
>
</volume>
Two things:
Replace 'DOMAIN_NAME' with your workgroup name
'path' isn't really a good name for the attribute, a better name would
have been 'sharename', it isn't a path!. You have '/public', so if you
are...
2020 Sep 25
0
Debian client/workstation pam_mount
...>> <volume fstype="fuse"
>> server="mbr04.subdom.example.com <http://mbr04.subdom.example.com>"
>> path="/srv/samba/public"
>> mountpoint="/home/test2/dtshare"
>> options=""username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
>>
>> ssh="0" noroot="0" />
>>
>> "tail -f /var/log/syslog" ends with:
>> Sep 25 06:39:54 lws4 systemd[1]: home-test2-d...
2018 Jun 07
2
Windows 10 clients slow remapping drives and somewhat inconsistent in reconnecting to the saved map drives
...ve worked through many of the configuration guides to get the POSIX attributes in the samba AD directory by provisioning with -use-rfc2307. And creating new accounts with appropriate samba-tool add user commands; sudo samba-tool user add <username> --uid-number=<userUID> gid-number=<userGID> home-directory=/homes/<username> login-shell=/bin/bash (So we can migrate the contents of older linux file servers and not have to change the uid/gid for files, and a few of the systems are interactive linux systems)
SSSD OR winbind based Linux authentication with AD backend works out fi...