The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command not found manna UNIX for Dummies Questions & Answers 20 01-10-2008 07:29 AM
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 03:38 PM
command not found simba_tsavo UNIX for Advanced & Expert Users 1 07-05-2006 06:17 AM
sh: Hello: command not found coolboarderguy Shell Programming and Scripting 2 06-24-2006 01:27 AM
groupadd: unable to lock group file Daven81 Linux 1 11-14-2005 06:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2008
Registered User
 

Join Date: Dec 2005
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
groupadd :: Command not found

Hi, everybody
Instructions on installing mysql in freebsd insist on using #groupadd command. I tried it on freebsd-6.0. just to get this response "Command not found".
Is there any way round?

yours`
sehrguey
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-11-2008
Registered User
 

Join Date: Oct 2007
Posts: 30
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Try...
whereis groupadd

or use find command to locate the file..
Reply With Quote
  #3 (permalink)  
Old 03-11-2008
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 721
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
if whereis and find doesn't work, then:
Code:
which groupadd
or
Code:
whence groupadd
and as a final resort:
Code:
locate groupadd
Reply With Quote
  #4 (permalink)  
Old 03-13-2008
Registered User
 

Join Date: Dec 2005
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
dear helpers,

all of the commands you proposed were tried with a monotonous result :Command not found or :No such file or directory.
I suspect the groupadd command is from Linux and mistakingly replicated by site-keepers in the net.
But then - how can a dummy deploy mysql on freebsd?

yours`
sehrguey
Reply With Quote
  #5 (permalink)  
Old 03-18-2008
Sergiu-IT's Avatar
Registered User
 

Join Date: Mar 2005
Location: Transilvania
Posts: 125
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Try to manualy edit the /etc/group file. Open it with an text editor and add a new record to match your needs. Be careful on the group id field (third field) to be unique on that file.
Reply With Quote
  #6 (permalink)  
Old 03-21-2008
Registered User
 

Join Date: Dec 2005
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Dear Sergiu-IT,
thanks for your help.
Following your instructions I fine the "group" file and edited it as you recommended.
So there are workarounds where there are techies.

yours`
sehrguey
Reply With Quote
  #7 (permalink)  
Old 04-04-2008
Registered User
 

Join Date: Jul 2006
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
you can also try:
# find / -name "groupadd"
Reply With Quote
  #8 (permalink)  
Old 04-05-2008
Registered User
 

Join Date: Dec 2005
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Dear _R3d ,

I typed your recipe at the command line as folows:
#find / -name "groupadd"

the box contemplated it for about half a minute and flashed back just bare prompt --
#

Anyway, many thanks for your benevolent intentions.

yours`
sehrguey
Reply With Quote
  #9 (permalink)  
Old 04-06-2008
Registered User
 

Join Date: Feb 2007
Location: California
Posts: 24
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
caveat: I never have found time to use these commands yet.
..................
gleaned from an onlamp com article after "apropos group" perusal:
................
ANSWER: probably)
1... edit /etc/groups (to add the group required by apache and
to give it a number (man groups , first)
2... chkgrp (if no errors found, step 1 was good probably)
3... chgrp FILE group (file, group as required per
the instructions you have about apache)
after perusing #man chgrp
Reply With Quote
  #10 (permalink)  
Old 04-13-2008
Registered User
 

Join Date: Dec 2005
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
dear jb_bsd,

Many thanks for your kind attention.
Actually, the group creation was needed by an application other than apache but that's minor.

First step from your instruction was done some time ago following the tip from Sergiu-IT (earlier in this here thread: "Try to manualy edit the /etc/group file.")

However, the idea of checking the group (second step from your instruction) is wholly your merit.
I did as you told and the box replied "/etc/group is fine".
So, the problem is solved yet still remains my question:

Does 'addgroup' command exist at all in this release of freebsd?

obligedly and muchly so yours`
sehrguey
Reply With Quote
  #11 (permalink)  
Old 4 Weeks Ago
Registered User
 

Join Date: Feb 2008
Location: Coolidge, AZ
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
There's no need for a "addgroup" or "groupadd" command when:

Code:
# vi /etc/group
Does the trick just fine.

That's the beauty in UNIX. If you can edit a text file, you can configure the OS. No "regedit" or anything obscure like that.

As an aside, I usually use "vipw" to add users to my system (rather than the supplied "adduser" script or anything else invented to create user accounts).
Reply With Quote
Google UNIX.COM
Reply

Tags
linux, solaris

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process export command in unix find grep find mtime find null character in a unix file glance unix grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 01:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101