|
I tried to change my user's shell, but used "sudo chsh", and changed the root shell to "bash" instead of "/bin/bash". Now when I try to change it I get "chsh: PAM authentication failed" and it seems like other things aren't working, either.
~$ sudo su...
Started by endolith on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Should be the first line, just correct the login shell which will be the last entry on the line the root users shell directly:
sudo gedit /etc/passwd
Find the line for you root user, usually the first.
|
|
Hi,
I installed bash 4.0 via MacPorts, then used sudo chsh -s /opt/local/bin/bash my_user to change my shell.
Before that I tried just running plain chsh without sudo , but it wouldn't allow me to change my shell to that path.
Now when I try to start ...
Started by kch on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Make sure /opt/local/bin/bin/bash should be a line in /etc/shells.
Open ~/Library/Preferences/com.apple.Terminal.plist and set the "Shell" key to "/bin/bash be stuck making a new user with admin privs and reset your shell there.
|
|
In the emacs Python shell (I'm running 2.* Python) I am importing a .py file I'm working with and testing the code. If I change the code however I'm not sure how to import it again.
From my reading so far it seems that
reload(modulename)
should work, ...
Started by justinhj on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Foo(): print('bar')
Then in the emacs python shell (or better yet, the ipython shell), type
>>.
|
Ask your Facebook Friends
|
Hi Folks,
Have people noticed that if you modify the source of a shell script, any instances that are currently running are liable to fail?
This in my opinion is very bad; it means that I have to make sure all instances of a script are stopped before ...
Started by YGA on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If the full shell script is contained in a single source file, and that ....
Make sure the shell has to parse the whole file before executing any of it:
#!/bin/ksh { all, depending on complexity of the shell scripts that are involved.
|
|
I'm working through the Composite Application Guidance and often come across instantiation of an object of type interface e.g.:
IShell shell = new Shell();
instead of type class:
Shell shell = new Shell();
What are the differences between these two? Why...
Started by Edward Tanguay on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Perhaps you have specifically a Shell object ....
The obvious difference is that the first allows you to use shell as an IShell only, the second allows you to use all the features of Shell which happen to also include those of IShell.
|
|
I want to find if certain files are changed within the last three minutes in order to decide if the cp was successful, and if I should exit or continue the script. How can I do that?
Thanks
Started by derrdji on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I use bash.
Of this if statement depends on your particular shell, but the date commands don't.
|
|
I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.
setenv FOO foo
in csh/tcsh, or
export FOO=foo
in sh/bash only set it during the script's execution.
I already know that
source...
Started by Larry Gritz on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The advantage ....
One environment variable set.
When child processes inherit your shell's variables, they're inheriting copies themselves.
You're not going to be able to modify the caller's shell because it's in a different process context.
|
|
I can't change my shell for root in Solaris 10. When i change, i can't login again after logout. The error is "no shell".
Started by Mogui on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I have hadYou have to specify the full path to the shell executable and I believe that appropriate this issue and I believe the shell binary....
Head -1 /etc/passwd | od -c ? Shell should be changed by using the passwd -e command.
|
|
How do I use adb to perform some automated tasks on my android phone? I need to find commands that I can issue from the command line (ideally, using a .bat file) that will be capable of more than simply opening an application or sending an input keyevent...
Started by Noah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm hoping there is some more.
The possibility is there with adb and in particular "adb shell am".
|
|
Hi everyone,
What would you recommend to do for a Low hood Paducah GP8: #1-- buy a cast resin shell from Kaslo Shops for $99 that comes with detail parts and air intake choices OR #2-- just chop the nose of a P2K Geep. If option #2 would be best, what...
Started by BNSF SD70 Swoosh on
, 16 posts
by 6 people.
Answer Snippets (Read the full thread at atlasrr):
All of ICG's rebuilds were NON-dynamic....
The Kaslo shell is a model of an Illinois Central Gulf Paducah rebuild GP8.
Resin shell from Kaslo Shops for $99 that comes with detail parts and air intake choices OR #2-- just and electrical upgrades.
|