Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Feb 2006 20:00:51 -0200
From:      Sergio Lenzi <enigma@k1.com.br>
To:        gnome@FreeBSD.org
Subject:   a small fix in the system-tools-backends
Message-ID:  <1138831251.30818.7.camel@bsdhome.cwb.casa>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello..


I am genarating a gnome 2.12 on a FreeBSD 5.4
and notice needs a small fix in the system-tools-backends ports

the program includes the user correctly but the permission  in the
new user directory remains is set for the root user.

the patch fixes this behaviour....

it replaces the same file in the files port directory....






[-- Attachment #2 --]
--- users-conf.in.orig	Mon Jan  2 13:48:06 2006
+++ users-conf.in	Wed Feb  1 19:35:22 2006
@@ -76,7 +76,7 @@
               "debian-2.2", "debian-3.0", "debian-sarge",
               "suse-7.0", "suse-9.0", "suse-9.1", "turbolinux-7.0",
               "slackware-8.0.0", "slackware-8.1", "slackware-9.0.0", "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0",
-              "freebsd-4", "freebsd-5", "freebsd-6",
+              "freebsd-4", "freebsd-5", "freebsd-6", "freebsd-7",
               "gentoo", "vlos-1.2",
               "archlinux",
               "pld-1.0", "pld-1.1", "pld-1.99", "fedora-1", "fedora-2", "fedora-3", "rpath", "vine-3.0", "vine-3.1");
@@ -374,6 +374,7 @@
   'freebsd-4'       => $freebsd_logindefs_defaults,
   'freebsd-5'       => $freebsd_logindefs_defaults,
   'freebsd-6'       => $freebsd_logindefs_defaults,
+  'freebsd-7'       => $freebsd_logindefs_defaults,
   'suse-7.0'        => $gentoo_logindefs_defaults,
   'suse-9.0'        => $gentoo_logindefs_defaults,
   'suse-9.1'        => $gentoo_logindefs_defaults,
@@ -917,8 +918,8 @@
     my $home;
 
     # FreeBSD doesn't create the home directory
-    $home = $$data[$users_prop_map{"home"}];
-    &gst_file_run ("$tool_mkdir -p $home");
+    # $home = $$data[$users_prop_map{"home"}];
+    # &gst_file_run ("$tool_mkdir -p $home");
 
     $command = "$cmd_pw useradd " .
      " -n \'" . $$data[$users_prop_map{"login"}] . "\'" .
@@ -926,7 +927,7 @@
      " -d \'" . $$data[$users_prop_map{"home"}] . "\'" .
      " -g \'" . $$data[$users_prop_map{"gid"}] . "\'" .
      " -s \'" . $$data[$users_prop_map{"shell"}] . "\'" .
-     " -H 0"; # pw(8) reads password from STDIN
+     " -m -H 0"; # pw(8) reads password from STDIN
 
     $pwdpipe = &gst_file_run_pipe($command, $GST_FILE_WRITE);
     print $pwdpipe $$data[$users_prop_map{"password"}];
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1138831251.30818.7.camel>