Displaying 13 results from an estimated 13 matches for "uid_max".
Did you mean:
pid_max
2014 Sep 02
2
[PATCH] sysprep: user-account: remove the correct home
...4
--- a/sysprep/sysprep_operation_user_account.ml
+++ b/sysprep/sysprep_operation_user_account.ml
@@ -84,6 +84,8 @@ let user_account_perform ~verbose ~quiet g root side_effects =
String.sub userpath (i+1) (String.length userpath -i-1) in
if uid >= uid_min && uid <= uid_max
&& check_remove_user username then (
+ (* Get the home before removing the passwd entry. *)
+ let home_dir = g#aug_get (userpath ^ "/home") in
g#aug_rm userpath;
(* XXX Augeas doesn't yet have a lens for /etc/shadow, so the...
2012 Apr 18
1
[PATCH RFC] sysprep: remove user accounts
...read_lines login_def) in
+ let line_min = Array.filter (
+ fun line -> (string_prefix line "UID_MIN")
+ ) lines in
+ let _,min_uid = sscanf line_min "%s %d" (fun a b -> a,b) in
+ let line_max = Array.filter (
+ fun line -> (string_prefix line "UID_MAX")
+ ) lines in
+ let _,max_uid = sscanf line_max "%s %d" (fun a b -> a,b) in
+ let passwd = "/etc/passwd" in
+ let shadow = "/etc/shadow" in
+ let group = "/etc/group" in
+ let lines = Array.to_list (g#read_lines passwd) in
+ let...
2015 Jul 01
4
[PATCH 1/2] mllib: add and use last_part_of
...- String.sub userpath (i+1) (String.length userpath -i-1) in
+ match last_part_of userpath '/' with
+ | Some x -> x
+ | None -> error "user-accounts: missing '/' in %s" userpath in
if uid >= uid_min && uid <= uid_max
&& check_remove_user username then (
changed := true;
diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 7967c0f..f5a716f 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -795,13 +795,9 @@ let rec convert ~keep_serial_console (g : G.guestfs)...
2006 May 03
1
MAC policies and shared hosting
Hello,
I've been looking at the different MAC modules available and how they
cold help to implement a less insecure than usual shared hosting web
server.
I've not been able to come up with a suitable configuration, looking
at mac_bsdextended, mac_biba and mac_mls, but I think that a MAC
module with the following policies could be very useful for such an
environment. Have I
2013 Oct 11
1
Odd useradd/LDAP behaviour
...er in the range used by the Windows users.
This is, users created before setting up LDAP are UID 501, 502 etc, but
new users are 200XX. This then potentially causes problems when a new
LDAP user is added, as we then have two users with the same UID/GID values.
I've resolved this by editing the UID_MAX and GID_MAX fields in
/etc/login.defs so the value is below the range used by the windows
users. New test user gets UID/GID 503 as expected. I guess specifying
the values in the useradd command would also work.
So why is LDAP making useradd use the wrong values?
Thanks for any suggestions,
Paul
2014 Dec 05
0
[PATCH] sysprep: user-account: mark "changed file" if users were removed
...g_init "/" 0;
let uid_min = g#aug_get "/files/etc/login.defs/UID_MIN" in
@@ -72,6 +73,7 @@ let user_account_perform ~verbose ~quiet g root side_effects =
String.sub userpath (i+1) (String.length userpath -i-1) in
if uid >= uid_min && uid <= uid_max
&& check_remove_user username then (
+ changed := true;
(* Get the home before removing the passwd entry. *)
let home_dir =
try Some (g#aug_get (userpath ^ "/home"))
@@ -90,7 +92,9 @@ let user_account_perform ~verbose ~quiet...
2015 Apr 05
2
Member server - winbind unable to resolve users/groups
On 05/04/15 13:47, buhorojo wrote:
> On 05/04/15 14:25, Rowland Penny wrote:
>> On 05/04/15 13:10, Luca Olivetti wrote:
>>> El 05/04/15 a les 11:57, Rowland Penny ha escrit:
>>>
>>>>> dn: CN=Domain Users,CN=Users,DC=ads,DC=ccenter,DC=lan
>>>>> objectSid: S-1-5-21-1031481445-3291699540-3997755762-513
>>>>> gidNumber: 513
2015 Jul 01
0
[PATCH 2/3] mllib: add and use last_part_of
...let uid = int_of_string uid in
- let username =
- let i = String.rindex userpath '/' in
- String.sub userpath (i+1) (String.length userpath -i-1) in
+ let username = last_part_of userpath '/' in
if uid >= uid_min && uid <= uid_max
&& check_remove_user username then (
changed := true;
diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 7967c0f..cadd515 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -795,10 +795,8 @@ let rec convert ~keep_serial_console (g : G.guestfs)...
2014 Dec 05
3
[PATCH] customize, sysprep: add a short SELinux note
Add a short paragraph about SELinux, mostly to point to the
documentation about it provided in the documentation of virt-builder.
---
customize/virt-customize.pod | 8 ++++++++
sysprep/virt-sysprep.pod | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/customize/virt-customize.pod b/customize/virt-customize.pod
index a666be7..8dbdfef 100644
--- a/customize/virt-customize.pod
+++
2015 Apr 05
0
Member server - winbind unable to resolve users/groups
...t
the idmap range to include lowest xid from the SAM database.
Also, login.defs explained why I've got so high RID's in my database.
Turned out, I've created the setup in Hardy, where it was largely ignored, but
I've added many users in 10.04, where the setup was already different.
UID_MAX/GID_MAX is 60000 in login.defs, and smbldap-tools selected RID's above
local range to represent domain members.
Thanks for not losing hope on me. I've got the basic setup working now.
The promised writeup will be up soon enough. May be in a week.
I have some stuff to attend to in the meant...
2015 Jul 01
0
Re: [PATCH 1/2] mllib: add and use last_part_of
...b userpath (i+1) (String.length userpath -i-1) in
> + match last_part_of userpath '/' with
> + | Some x -> x
> + | None -> error "user-accounts: missing '/' in %s" userpath in
> if uid >= uid_min && uid <= uid_max
> && check_remove_user username then (
> changed := true;
> diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
> index 7967c0f..f5a716f 100644
> --- a/v2v/convert_linux.ml
> +++ b/v2v/convert_linux.ml
> @@ -795,13 +795,9 @@ let rec convert ~...
2015 Jul 01
1
Re: [PATCH 1/2] mllib: add and use last_part_of
...ring.length userpath -i-1) in
> > + match last_part_of userpath '/' with
> > + | Some x -> x
> > + | None -> error "user-accounts: missing '/' in %s" userpath in
> > if uid >= uid_min && uid <= uid_max
> > && check_remove_user username then (
> > changed := true;
> > diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
> > index 7967c0f..f5a716f 100644
> > --- a/v2v/convert_linux.ml
> > +++ b/v2v/convert_linux.ml
> > @@...
2015 Jul 01
5
[PATCH 1/3] mllib: add an optional filter for rm_rf_only_files
This way it is possible to use rm_rf_only_files, but not removing
specific files.
---
mllib/common_utils.ml | 8 +++++++-
mllib/common_utils.mli | 5 ++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index 516cff3..3737b4c 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -640,13 +640,19 @@ let rmdir_on_exit =
*