Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 1999 15:10:57 -0600
From:      Guy Helmer <ghelmer@scl.ameslab.gov>
To:        nussi <root@nussi.ml.org>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: Bug ?
Message-ID:  <Pine.SGI.4.05.9903101505470.15928-100000@demios.scl.ameslab.gov>
In-Reply-To: <Pine.BSF.4.05.9903102142001.1725-100000@nussi.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Mar 1999, nussi wrote:

> Dear FreeBSD Team !!!
> 
> i have some silly Questions... (sorry for mistakes, iam from Vienna)
> 
> 1. why i cant remove a user with big letters ? 
>    e.g. i cant delete "Nussi" because its not alphanummeric
>         but i can delete "nussi" ...
>    what can i do to remove a user without "rmuser" ?
>    i really need this and when its not possible to remove names
>    with big letters i must change back to Linux :(

Hmm, that's a simple change (I wonder why this hasn't come up before?).
As root, "cd /usr/sbin" and use "patch -p < thisMailMessage", where
"thisMailMessage" is the name of the file containing this mail message,
to apply this patch to allow uppercase letters:

*** rmuser~	Wed Mar 10 15:06:11 1999
--- rmuser	Wed Mar 10 15:06:41 1999
***************
*** 108,114 ****
      # Username was given as a parameter
      $login_name = pop(@ARGV);
      die "Sorry, login name must contain alphanumeric characters only.\n"
! 	if ($login_name !~ /^[a-z0-9_][a-z0-9_\-]*$/);
  } else {
      if ($affirm) {
  	print STDERR "${whoami}: Error: -y option given without username!\n";
--- 108,114 ----
      # Username was given as a parameter
      $login_name = pop(@ARGV);
      die "Sorry, login name must contain alphanumeric characters only.\n"
! 	if ($login_name !~ /^[a-zA-Z0-9_][a-zA-Z0-9_\-]*$/);
  } else {
      if ($affirm) {
  	print STDERR "${whoami}: Error: -y option given without username!\n";
***************
*** 276,282 ****
  	print "Enter login name for user to remove: ";
  	$login_name = <>;
  	chop $login_name;
! 	if (!($login_name =~ /^[a-z0-9_][a-z0-9_\-]*$/)) {
  	    print STDERR "Sorry, login name must contain alphanumeric characters only.\n";
  	} elsif (length($login_name) > 16 || length($login_name) == 0) {
  	    print STDERR "Sorry, login name must be 16 characters or less.\n";
--- 276,282 ----
  	print "Enter login name for user to remove: ";
  	$login_name = <>;
  	chop $login_name;
! 	if (!($login_name =~ /^[a-zA-Z0-9_][a-zA-Z0-9_\-]*$/)) {
  	    print STDERR "Sorry, login name must contain alphanumeric characters only.\n";
  	} elsif (length($login_name) > 16 || length($login_name) == 0) {
  	    print STDERR "Sorry, login name must be 16 characters or less.\n";

> 2. i need in vienna the german keyboard but i dont 
>   have special letters like "ae" (i dont know the english word for it)
>   the german keyboard i can choose in /stand/sysinstall is not good enough
> 
> 3. is there a way to scroll with "alt+pageup/down" and have colour in a
> console term ? iam missing it, because i changed from linux to FreeBSD 
> iam also missing the actual path at the command prompt :(

You can use "ScrollLock" to put the console into paging mode, and then use
PageUp/PageDn to move the page.  Press "ScrollLock" again to get back out
of scrolling mode.

I'm not sure about your other questions...

Guy

Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science 
Research Assistant, Ames Laboratory       ---         ghelmer@scl.ameslab.gov
Research Assistant, Dept. of Computer Science   ---   ghelmer@cs.iastate.edu
http://www.cs.iastate.edu/~ghelmer



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.05.9903101505470.15928-100000>