It's not really a matter of having the wrong attitude toward root. It has everything to do with bash being a port and not being a part of the base system. This means that it can break, or a dependency can break, making the root account unusable.ShelLuser said:Either way, I also want to stress out that using bash is a bad idea. You really don't want to treat FreeBSD as if it were a Linux distribution, even though they have some similarities. The reason I'm mentioning this is because you create the impression that you simply want to make things easier for the root user. Yet normally there would be no need because the root account isn't something you normally want to use in your day to day operations.
Well, that's a semantic I don't quite share because the very moment you fire up FreeBSD in single user mode, the first question it'll ask is what shell you wish to use. If I recall correctly it even defaults to /bin/sh.ta0kira said:It's not really a matter of having the wrong attitude toward root. It has everything to do with bash being a port and not being a part of the base system. This means that it can break, or a dependency can break, making the root account unusable.
That's quite a good one.. I once used it to add a user to a different group, and although I got a bit overwhelmed at first it is quite consistent where syntax is concerned.ta0kira said:Also, I generally use pw to make changes to user accounts, since it makes sure all of the right files are changed/recompiled.
gkontos said:Never use a shell for the root user that is not included in the root (/) filesystem!
$ chsh -s zsh
(to change for example to zsh), as is also described in the handbook.Another way of safely specifying a non-standard shell for root is to use the toor account for that. I actually have it disabled because I don't need/want it, but that's what it's for.jalla said:There's nothing wrong in using a non-standard shell for root, just use it in a safe way. You could put something like this at the top of /root/.cshrc:
# bash
after logging in? This is the way I administrate systems for all the years.Problem is a bit overstated, but it's probably easier to enable the toor account and use that for logging in.storvi_net said:Is there any problem by typing# bash
after logging in? This is the way I administrate systems for all the years.
That does help, of course. But you presumably deliberately chose to do that. Most people won't have / and /usr/local on the same filesystem.xtaz said:I personally have / and /usr/local on the same filesystem.
fonz said:That does help, of course. But you presumably deliberately chose to do that. Most people won't have / and /usr/local on the same filesystem.
I should probably rephrase that: most new users using the guided/automated partitioning probably won't bla bla bla.chatwizrd said:Why do you think that?
fonz said:... In most cases /usr/local will be either a separate partition or it will be part of /usr, but not of / because most people have at least / and /usr separated.
Whoa, when did that happen? Sounds like a bad idea to me.rolfheinrich said:This is old teaching, i.e. pre-9.x disk layout.
The new teaching lets new users put everything into the same partition.
You'll lose some aspects of job control since bash won't be the session leader.storvi_net said:Is there any problem by typing# bash
after logging in? This is the way I administrate systems for all the years.
exec bash
is a better way to go so it takes over the terminal.fonz said:Whoa, when did that happen? Sounds like a bad idea to me.
fonz said:Whoa, when did that happen? Sounds like a bad idea to me.