LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2017, 06:29 PM   #1
dora22
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
Red face how to comment multiple lines in linux while creating a user account


create a user account called jessy ringer of the football team and assign his home directory at football/jringer
 
Old 12-15-2017, 06:33 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You mean football commentary?
 
Old 12-16-2017, 08:02 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Please read this: https://www.linuxquestions.org/linux...Ask_a_Question
 
Old 12-16-2017, 10:43 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Inserting a # as the very first character in /etc/passwd (for those unfortunates who have such file)
seemed to work ok for me. I'd suggest Moderator close this Thread and ban (another) spammer.
 
Old 12-17-2017, 02:15 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Quote:
Originally Posted by !!! View Post
Inserting a # as the very first character in /etc/passwd (for those unfortunates who have such file)
seemed to work ok for me. I'd suggest Moderator close this Thread and ban (another) spammer.
This is a classic mistake in Unix:
a #user in /etc/passwd is not a comment but a valid user named #user
 
Old 12-17-2017, 03:16 AM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
I thot so too, but when I just tried it (in a couple distros), at least ls -l reported a zero instead of #root
Which #root I expected. I was thinking: maybe something got changed aka 'fixed' over the decades.
Or maybe login still accepts #username but ls -l reports just numeric uid. I need to visit more VBoxes

Anyway, M. Spammer accidentally gave us something [slightly] interesting
(I welcome anyone's output in CODE tags)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment multiple lines in AWK script rimonece Linux - Newbie 3 10-02-2015 02:20 PM
creating multiple user in multiple linux boxes from single remote host niaz_ph Linux - Newbie 3 09-12-2011 03:48 PM
comment multiple lines in vim Furlinastis Slackware 9 12-11-2007 01:01 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration