LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 07: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, 07:33 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
You mean football commentary?
 
Old 12-16-2017, 09: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: 15,790
Blog Entries: 27

Rep: Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633Reputation: 4633
Please read this: https://www.linuxquestions.org/linux...Ask_a_Question
 
Old 12-16-2017, 11:43 PM   #4
!!!
Member
 
Registered: Jan 2017
Posts: 666

Rep: Reputation: 289Reputation: 289Reputation: 289
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, 03:15 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,267

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
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, 04:16 AM   #6
!!!
Member
 
Registered: Jan 2017
Posts: 666

Rep: Reputation: 289Reputation: 289Reputation: 289
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:20 PM
creating multiple user in multiple linux boxes from single remote host niaz_ph Linux - Newbie 3 09-12-2011 04:48 PM
comment multiple lines in vim Furlinastis Slackware 9 12-11-2007 02: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 11:02 AM

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

All times are GMT -5. The time now is 01:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration