DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed Debian Jessie on an older OrangePizero. It works, but inorder to run scripts, I have to be signed into root. I added the regular user to the sudo list (using visudo) and even tried adding this user to the adm and sudo group.
I am not that knowledgeable about plain Debian, I mostly use Ubuntu and Mint.
Is something wrong with /bin/sh and /bin/bash? Or with a shared library used by the shell or the commands? Is there anything inthe system log and/or the kernel message buffer?
If not, run the scripts as bash AllUsers.sh, and try the debug option bash -x AllUsers.sh.
Under normal user, no file created. Under root, file created but empty.
Did you prefix each command with sudo? Or run all the commands in one root shell session? If the former, I'd expect an empty file.
Something's way off. It's definately not behaving normally (you indicated you don't know Debian all that well).
How old is this installation?
Have you installed anything not from the offical repositories?
Have you followed any online tutorials?
If you create a brand new user, does that user have the same problem?
I copied the commands from the post and pasted them into the user account sign on, which I knew would fail. Then I did a
"fc -l" and saw what the begin and end command numbers were. Lets say they were 20 and 25. I then did a "fc -e vi 20 25" and
then used vi to delete off the first two characters from each command. I then did a :x and the commands executed.
I then repeated this procedure under root. I know a few tricks.
At first I was reluctant to suggest hardware problem, because you said that everything works fine under root. However, it looks like everything is not fine with root. /tmp/log.txt should contain the commands you executed and their output.
What about the other 4 questions I asked?
Does the rest of the system work properly? How long since its last reboot?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.