LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Please clarify my questions on FreeBSD (https://www.linuxquestions.org/questions/%2Absd-17/please-clarify-my-questions-on-freebsd-654760/)

prakash.akumalla 07-10-2008 12:23 AM

Please clarify my questions on FreeBSD
 
Hai,

I have just installed FreeBSD6.3 . Now I created a user for that using adduser. After that all went wrong. Its asking username, Fullname and Uid. I gave the same (username i created) for the first two questions and left empty as it said for the third one.

I want to know whats all this?
Why should i give all the above details?
How can I set password for the user I created?
Can I use the root here as same as the root in normal Fedora.

Please say about the things mentioned above in detail.

Thanks,
Prakash.

indeliblestamp 07-10-2008 12:32 AM

Only the username is mandatory. You can skip the Fullname. If you skip the Uid, the next available number will be used.
If it didn't prompt for the password after this, type 'passwd username' to set the password.
Root is the same here as in Fedora. Just remember that you won't be able to su into root from your normal user account unless this user is present in the 'wheel' group.

Mr. C. 07-10-2008 12:32 AM

Learn about /etc/passwd,
Read man passwd
read man useradd # or adduser if you have that

The, after you have learned all about it, you can tell us in detail what you've learned.

BugZRevengE 07-10-2008 12:34 AM

It puts these details in /etc/passwd, but you can leave the fullname blank.
Some versions of linux do this too: ubuntu/slackware that I know off

to change another users password as root, just run:
passwd username
where username is the username of the user you want to change password for.

you should be able to use root if you want, it is just better to not run as root for every-day use, only when it is really needed - even if you use fedora, you should not run as root.

prakash.akumalla 07-10-2008 12:58 AM

Hi,
Thanks for your reply. I did the same as you explained. I gave adduser and then gave the same name for username and left fullname and uid blank. Then the result is the

Login group [username]:

Here what ever I give the result is same ie.,

Login group is Username. Invite username into other groups? []:

Here what ever I give the result is group .... does not exist!

i am not getting it. please help me in this aspect.

Thanks,
Prakash.

indeliblestamp 07-10-2008 01:06 AM

The first rule of FreeBSD is, read the handbook! There's a demo of the adduser command here: http://www.freebsd.org/doc/en/books/...modifying.html

prakash.akumalla 07-10-2008 01:42 AM

Hi,
Thanks arun for ur valuable suggestion. I have created an user and switched to it. Now in that particular user commands like yum, wget updateb are not working.
Please help in this topic
Thanks,
Prakash

indeliblestamp 07-10-2008 02:29 AM

Again, read the handbook. yum is for rpm-based linux distros. FreeBSD uses ports (source-based installation) and packages (binaries, similar to yum).
There's detailed chapters for both, skim through them and use whichever you like.

You probably haven't installed wget and updatedb. Read the handbook and see how those can be installed.

Tinkster 07-10-2008 01:12 PM

Moved: This thread is more suitable in <*BSD> and has been moved accordingly to help your thread/question get the exposure it deserves. I also renamed it since you obviously had
questions, not doubts.

anomie 07-10-2008 03:22 PM

@prakash.akumalla: You'll find the FreeBSD manpages are generally quite informative. A quick look at adduser(8) would have answered your questions.

Quote:

Now in that particular user commands like yum, wget updateb are not working.
  • Chapter 4 Installing Applications...
  • Use fetch instead of wget. See manpages for fetch(1). If you really require some unique functionality of wget, install it from packages or ports.
  • updatedb is run by FreeBSD's periodic facility via the script /etc/periodic/weekly/310.locate. It will run weekly. If you require it to be run for a one-off situation, then you can run that script directly (as root).


All times are GMT -5. The time now is 11:10 PM.