= Сообщение: 2956 из 7127 ====================================== FTSC_PUBLIC = От : Bill McGarrity 1:266/404 29 Jan 17 11:41:00 Кому : mark lewis 29 Jan 17 11:41:00 Тема : Re: Bash file issues... FGHI : area://FTSC_PUBLIC?msgid=6393.2ftscpubl@1:266/404+1cf36ecb На : area://FTSC_PUBLIC?msgid=1:3634/12.73+588e0445 = Кодировка сообщения определена как: ASCII ================================== ============================================================================== -=> mark lewis wrote to Bill McGarrity <=-
ml> On 2017 Jan 28 23:43:02, you wrote to me:
ml>> BM> It was do to the 'sudo' before the ./sbbsecho from the testing I ml>> did.
ml>> yes but why? why did "sudo" do that?? that's the part to be learned ml>> and understood ;)
BM> As I understand it... sudo allows anyone to become a superuser and BM> being I was running under 'pi', it would not allow the variable to be BM> set properly. Being /etc/profile already has it set for all users... BM> that was creating an issue. That's the way I see it... could be BM> wrong... yes?? no???
ml> i'm trying to gently push you to the sudo docs where it is explained ;)
I understand... I'm starting to get the hang of it.... slowly... but I'm dealing with it. I've put together other bash files since then and they're all working just fine. <fingers crossed>
ml> -E, --preserve-env ml> Indicates to the security policy that the user wishes to preserve their ml> existing environment variables. The security policy may return an ml> error if the user does not have permission to preserve the environment.
ml> -i, --login ml> Run the shell specified by the target user's password database entry as ml> a login shell. This means that login-specific resource files such as ml> .profile or .login will be read by the shell. If a command is ml> specified, it is passed to the shell for execution via the shell's -c ml> option. If no command is specified, an interactive shell is executed. ml> sudo attempts to change to that user's home directory before running ml> the shell. The command is run with an environment similar to the one a ml> user would receive at log in. The Command Environment section in the ml> sudoers(5) manual documents how the -i option affects the environment ml> in which a command is run when the sudoers policy is in use.
I ahve some linux books on order that should be here in a couple of days. Will give me some material to read before I crash at night.. :)
ml> plus i posted some links the other day explaining the environment thing ml> with sudo...
I saw and appreciate..
ml> but the main point is that you found out that you didn't even need to ml> execute sudo to start with... not sure what made you think that you ml> needed to do that but you learned something from it ;)
Yup... and for now, being I'm using ONLY sbbsecho as a hub, I don't even have to use sudo for SBBS as I'm not running the bbs for the lower ports.... :)
I plan on getting hpt and htick running on it one day but that is in the future when I get more familiar.... :) Baby steps...