[solved] ssh will only login to /bin/bash

I have a machine with a few users and an ssh server.
I would like to setup a user with rbash or nologin for the shell but if i do that, I can't ssh onto that user.
my /etc/passwd
zidar:x:1000:100:zidar:/home/zidar:/bin/bash
smotko:x:1001:1001::/home/smotko:/bin/rbash
now
ssh zidar@pc
su smotko #this works
# but this doesnt
ssh smotko@pc # works only if i change the passwd file back to /bin/bash
this is with my log for ssh with rbash
Dec 25 03:17:25 arch-dev sshd[636]: Failed password for smotko from 10.0.2.2 port 49075 ssh2
and same with bash
Dec 25 03:20:18 arch-dev sshd[678]: Accepted password for smotko from 10.0.2.2 port 49088 ssh2
and this is how ssh looks with anything other than /bin/bash in /etc/passwd
$ ssh smotko
smotko@pc's password:
Permission denied, please try again.
password is correct because i can use it locally
thank you for helping
Last edited by zidarsk8 (2014-03-14 14:59:17)

The Arch bash package doesn't actually have the /usr/bin/rbash command.  So not only is this not included in the /etc/shells file, but you are also trying to set the shell to something that doesn't actually exist.  See the RESTRICTED SHELL section of the bash man page. 
I think wat you are after might be achieveable by simply using 'set' in the given user's startup files.

Similar Messages

  • [Solved] pppd will only connect once

    Hi,
    I am running a fully updated Arch box as a router with a PPPoA connection. The ppp daemon starts up fine when the box first boots but any subsequent connection attempts (either by the persistent argument or using a bash script) cannot connect the ppp connection. My daemon.log shows the following when a second connection attempt is made:
    Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [CHAP Challenge id=0x1 <#########>, name = "#########"] <--- real details removed
    Jul 29 18:47:40 SERVERARCH pppd[3752]: sent [CHAP Response id=0x1 <#########>, name = "#########"] <--- real details removed
    Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [LCP EchoRep id=0x0 magic=0x44005010]
    Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [IPCP ConfReq id=0x1b <addr 78.150.192.1>]
    Jul 29 18:47:40 SERVERARCH pppd[3752]: discarding proto 0x8021 in phase 5
    With the IPCP and discard line being repeated around 20 times.
    I guess something is being sent out of order, but this only ever happens if I am trying to connect the pppd for a second time. A reboot cures the problem suggesting it is something to do with my box.
    Any help would be great   
    Last edited by e1fjl (2009-07-30 21:37:06)

    DJszapi:
    There's no problem with the first connection but it is to my ISP and occasionally they randomly disconnect me (usually early hours of the morning) I assume to cycle IPs or something.
    Daf666:
    The initial IP is obtained from the ISP via DHCP when initiating the ppp connection. The ppp config is set to obtain it on initiation of the ppp connection.
    If it helps, after the 20 IPCP rejections the connection terminates like so:
    Jul 29 18:48:10 SERVERARCH pppd[3752]: sent [LCP EchoReq id=0x1 magic=0x6b9e7a7f]
    Jul 29 18:48:10 SERVERARCH pppd[3752]: rcvd [LCP EchoRep id=0x1 magic=0x44005010]
    Jul 29 18:48:11 SERVERARCH pppd[3752]: rcvd [IPCP ConfReq id=0x1b <addr 78.150.192.1>]
    Jul 29 18:48:11 SERVERARCH pppd[3752]: discarding proto 0x8021 in phase 5
    Jul 29 18:48:14 SERVERARCH pppd[3752]: rcvd [LCP TermReq id=0x1c]
    Jul 29 18:48:14 SERVERARCH pppd[3752]: LCP terminated by peer
    Jul 29 18:48:14 SERVERARCH pppd[3752]: sent [LCP TermAck id=0x1c]
    Jul 29 18:48:15 SERVERARCH pppd[3752]: rcvd [LCP TermReq id=0x1]
    Jul 29 18:48:15 SERVERARCH pppd[3752]: sent [LCP TermAck id=0x1]
    Jul 29 18:48:17 SERVERARCH pppd[3752]: Connection terminated.
    To me that looks like my router is restarting the connection, receiving a conf-request but then discarding it as out of order...
    Thanks

  • AIX SSH Connectivity,  existence check failed for bin/bash

    hello;
    I received error
    AIX 7 Oracle RAC 11g R2
    Oracle RAC AIX SSH Connectivity
    existence check failed for bin/bash on node2
    but the bin/bash exists
    have any idea?
    regards
    siyavus
    Edited by: sak on May 31, 2011 10:41 PM

    Does it really say "bin/bash"? It should have a slash in front of bin: "/bin/bash"
    Can you login to node 2 and do:
    echo $PATH
    ls -l /bin/bash

  • [solved]Terminator can not start /bin/bash

    Terminator show an error:
    Unable to start shell:/bin/bash
    this error comes from here:
    /usr/lib/python2.7/site-packages/terminatorlib/terminal.py
    1292 self.pid = self.vte.fork_command(command=shell, argv=args, envv=envv,
    1293 loglastlog=login,
    1294 logwtmp=update_records,
    1295 logutmp=update_records,
    1296 directory=self.cwd)
    1297 self.command = shell
    1298
    1299 self.titlebar.update()
    1300
    1301 if self.pid == -1:
    1302 self.vte.feed(_('Unable to start shell:') + shell)
    1303 return(-1)
    But I can startup terminator using root acount
    the self.pid != -1 when I'm root
    I dont remeber change any privileges ...
    Any idears ?
    Last edited by Hacksign (2013-08-27 01:47:33)

    Scimmia wrote:is /dev/pts listed in /etc/fstab? If so, remove it.
    Thanks, that's actually resolved my problem

  • /bin/bash to write a form letter [solved]

    Ok, in principal, I need to have bash read in a file and make substitutions for variables I have defined in a skeleton file.  Kind of like a form letter.  Why?  I have torque installed on my machine and I need to have my repo-ck build script make a custom build.sh that each respective cluster job will call.
    I'm no student and this isn't homework.  Anyway, here is an oversimplified example
    letter.skl:
    Dear $name,
    The party starts at $time.
    Regards,
    $me
    So the bash script defines all three of those variables and needs to read in the letter.skl and pipe it into a new file that contains the "final" output.  How can this be accomplished?
    #!/bin/bash
    name="John"
    time="11 o'clock"
    me="graysky"
    Last edited by graysky (2011-06-18 22:38:33)

    Yeah... this is how I'm doing it now, but it's very clunky.  I need to generate within my build.functions two files:
    1) A build script unique to each arch and cpu package
    2) A queue file for the cluster that will call #1
    I have leveraged the echo method as I said, but its not elegant and very ugly.  What would be far better would be for me to have a skeleton script I can read in, substitute and write out if this is possible natively in bash.
    Example of my "ugly" code:
    # make cluster.pbs
    echo "#!/bin/bash" > $pkgarch-$arch.pbs
    echo "#PBS -l nodes=1,walltime=1:00:00" >> $pkgarch-$arch.pbs
    echo "#PBS -N $arch-$pkgarch" >> $pkgarch-$arch.pbs
    echo " " >> $pkgarch-$arch.pbs
    echo "[[ $arch = \"x86_64\" ]] && $workdir/build-$pkgarch-$arch.sh" >> $pkgarch-$arch.pbs
    echo "[[ $arch = \"i686\" ]] && sudo linux32 chroot /opt/arch32 /bin/bash -c $workdir/build-$pkgarch-$arch.sh ; sleep 1s" >> $pkgarch-$arch.pbs
    # make script it needs if building in chroot
    echo "#!/bin/bash" > $workdir/build-$pkgarch-$arch.sh
    echo ". /home/$me/.credentials" >> $workdir/build-$pkgarch-$arch.sh
    echo "cd $workdir" >> $workdir/build-$pkgarch-$arch.sh
    echo "whatarch=\$(uname -m)" >> $workdir/build-$pkgarch-$arch.sh
    echo "if [ \$whatarch = \"x86_64\" ]; then" >> $workdir/build-$pkgarch-$arch.sh
    echo " makepkg -g >> PKGBUILD && makepkg -sc" >> $workdir/build-$pkgarch-$arch.sh
    echo "else" >> $workdir/build-$pkgarch-$arch.sh
    echo "su -c \"makepkg -g >> PKGBUILD && makepkg -sc\" $me" >> $workdir/build-$pkgarch-$arch.sh
    echo "fi" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "for i in PKGBUILD \"\$_config\"; do" >> $workdir/build-$pkgarch-$arch.sh
    echo "mv \$i $des_cluster/repo/$arch/files/\$i.$pkgarch" >> $workdir/build-$pkgarch-$arch.sh
    echo "done" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "x=0" >> $workdir/build-$pkgarch-$arch.sh
    echo "for i in \$(ls *.xz); do" >> $workdir/build-$pkgarch-$arch.sh
    echo " array[\$x]=\$i" >> $workdir/build-$pkgarch-$arch.sh
    echo " x=\$(( \$x +1 ))" >> $workdir/build-$pkgarch-$arch.sh
    echo " mv \$i $des_cluster/repo/$arch" >> $workdir/build-$pkgarch-$arch.sh
    echo "done" >> $workdir/build-$pkgarch-$arch.sh
    echo " " >> $workdir/build-$pkgarch-$arch.sh
    echo "files=\$(echo \${array[@]}|sed s'/\ /,/')" >> $workdir/build-$pkgarch-$arch.sh
    echo "if [ \$whatarch = \"x86_64\" ]; then" >> $workdir/build-$pkgarch-$arch.sh
    echo " curl -u \$myusername:\$mypasswd -T $des_cluster/repo/$arch/{\$files} ftp://\$mysite/\$arch/ -s &" >> $workdir/build-$pkgarch-$arch.sh
    echo "else" >> $workdir/build-$pkgarch-$arch.sh
    echo " su -c \"curl -u \$myusername:\$mypasswd -T $des_cluster/repo/$arch/{\$files} ftp://\$mysite/\$arch/ -s & $me" >> $workdir/build-$pkgarch-$arch.sh
    echo "fi" >> $workdir/build-$pkgarch-$arch.sh
    chmod +x $workdir/build-$pkgarch-$arch.sh
    qsub $pkgarch-$arch.pbs > /dev/null

  • [SOLVED] Terminator stopped working Unable to start shell:/bin/bash

    Hello,
    I just wanted to share as I didn't found anything about it,
    Since yesterday I can't launch my favorite terminal emulator which is terminator, it gives me :
    Unable to start shell:/bin/bash
    displayed in terminator window where I'm supposed to type commands.
    What is strange is that I can launch /bin/bash in tty's plus I installed xterm temporarily which works fine with bash.
    One more thing is that if I close terminator window it closes my graphical session !
    Any idea to troubleshoot this ?
    Last edited by detestable (2013-08-16 08:39:54)

    I'm getting this :
    me@latitude ~ $ gdb /usr/bin/python
    GNU gdb (GDB) 7.6
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/python3.3...(no debugging symbols found)...done.
    (gdb) run /bin/terminator
    Starting program: /usr/bin/python3.3 /bin/terminator
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    File "/bin/terminator", line 103
    except (KeyError,ValueError), ex:
    ^
    SyntaxError: invalid syntax
    [Inferior 1 (process 13780) exited with code 01]
    I also tried gnome-terminal which is not working correctly (installed right now)
    From the user interface it says in red :
    "There was an error creating the child process for this terminal"
    "grantpt failed: Operation not permitted"
    From gdb :
    m@latitude ~ $ gdb /usr/bin/gnome-terminal
    GNU gdb (GDB) 7.6
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/gnome-terminal...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /usr/bin/gnome-terminal
    warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    [New Thread 0x7fffea2b9700 (LWP 13839)]
    Error: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._vte_2dpty_2derror.Code1: grantpt failed: Operation not permitted
    [Thread 0x7fffea2b9700 (LWP 13839) exited]
    [Inferior 1 (process 13835) exited normally]
    Only xterm seems to work

  • [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

    Hello all.
    I've just installed arch, despite very little knowledge of linux (i had ubuntu for a short while before this), but I like a challenge so i thought i'd throw myself in at the deep end.
    The installation went reasonably smoothly, but now i've got it up and running (with a minimal KDE install) but when I open up the konsole, I get the message
    "Warning: Could not find '/bin/bash/', starting '/bin/sh' instead. Please check your profile settings."
    and subsequently I cannot "su jake" (jake being my username, obviously). It requests my password, but when i press return I get the response
    su: /bin/bash/: Not a directory
    which means i've obviously done something wrong, but I cant make head nor tail of the archwiki on Bash, and from googling, I cant find anyone with a similar issue. I can run from root, but it's not ideal.
    Thanks for any response as to why this might be happening, and how to fix it.
    Last edited by hansolo128 (2012-04-24 08:55:37)

    @oxyd
    sh-4.2$ cat /etc/shells
    # /etc/shells
    /bin/sh
    /bin/bash
    # End of file
    root:x:0:0:root:/root:/bin/bash
    jake:x:1000:100::/home/jake:/bin/bash/
    the output of /etc/passwd is
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/bin/false
    daemon:x:2:2:daemon:/sbin:/bin/false
    mail:x:8:12:mail:/var/spool/mail:/bin/false
    ftp:x:14:11:ftp:/srv/ftp:/bin/false
    http:x:33:33:http:/srv/http:/bin/false
    nobody:x:99:99:nobody:/:/bin/false
    dbus:x:81:81:System message bus:/:/bin/false
    jake:x:1000:100::/home/jake:/bin/bash/
    usbmux:x:140:140:usbmux user:/:/sbin/nologin
    mysql:x:89:89::/var/lib/mysql:/bin/false
    kdm:x:135:135::/var/lib/kdm:/bin/false
    avahi:x:84:84:avahi:/:/bin/false
    moving my home directory from /bin/bash/ to /bin/bash on the line of my username now allows me to su jake, but it doesnt solve the warning that /bin/bash/ doesnt exist.

  • My iPhone 5 will only connect and keep connected if I am about 5feet away from my router. It also will not pick up other wifi sources and will drop Bluetooth. What can I do to solve this problem?

    My iPhone 5 will only connect and keep connected if I am about 5feet away from my router. It also will not pick up other wifi sources and will drop Bluetooth. What can I do to solve this problem?

    Are there any other wireless devices that might cause interference?
    Also are there any nearby Wi-Fi networks that might have the same name as yours? It amazing how many Linksys Wi-Fi networks are out there.

  • Finalcutserver will only generate proxies when admin is logged in to server - how do I solve that?

    Finalcutserver will only generate proxies when admin is logged in to server - how do I solve that?

    Proxies and media are placed on mounted san volume and with correct rights.
    I can duplicate an asset, but no transcoding are taking place -  when admin is logged out. As soon as admin logs in transcoding are working again.
    I really don't know what to look for, any good idea's?

  • [SOLVED] Can only login to Arch forum with Firefox

    Hi everyone,
    I'm a new member and thus do not familiar with the rule. Please tell me if I post in the wrong place !
    I have registered a new account on Arch forum. However, I can only login with Firefox.
    When I try to login with other browser (Opera, Chromium, Konquerer), it says:
    Redirecting
    Logged in successfully. Redirecting …
    Click here if you do not want to wait any longer (or if your browser does not automatically forward you)
    And then redirect me to the previous page without changing my login status.
    When I login with Firefox, everything is normal. My login status is changed and I can post this one !
    I have just installed Arch Linux this afternoon and have not changed anything.
    Does the forum have problem?!
    Anyone has the same problem with me?!
    Last edited by BlueLaguna (2012-11-28 21:42:16)

    Your SYSTEM is broken because a browser does not work? And that requires a reinstall?
    There may be a problem during installation. That's what I mean.
    Anyway, I have just installed Arch Linux. Firefox is still the only browser that work.
    Your time would be better spent fixing the problem first. Cache or configuration, pick one or both.
    I'm pretty sure that cache and configuration are not concerned with this problem. I'm a web developer and I know these stuffs.
    Besides, I don't think that we need to config anything with a newly installed browser. If the default settings do not work with normal website, it's a bad browser (in this case, we have three bad browsers: Konqueror, Chromium, Opera... and may be more).
    I'm using KDE and I don't know whether this problem comes from KDE or not. However, I can login to many other forums with Konqueror, Opera and Chromium.
    This forum may not create the session or cookies correctly when I use other browsers.
    Anyway, If no one confirms that he or she has the same problem, let's close this topic here.

  • [SOLVED] /bin/bash not running

    Hi!
    I upgraded the system as usual (pacman -Syy) and now (I've rebooted a few times) neither konsole or terminator or any other terminal, just the Ctrl+Alt+FX ones
    Konsole just keeps being a black window while Terminator says that it was imposible to execute /bin/bash
    I don't have any idea what could have happenned. Any idea? Which log stores the problems of /bin/bash?
    Thanks
    Last edited by eherranzr (2013-08-20 13:51:59)

    karol wrote:
    https://mailman.archlinux.org/pipermail … 33999.html ?
    Edit: pacman -Syy doesn't upgrade your system ...
    Thanks, I don't understand why this changed this way and why I haven't seen it enywhere
    Sorry, a typing error, meant -Syu

  • PAM doesn't like /usr/bin/bash set as shell

    Can anyone explain why PAM is fine with /usr/bin/zsh set as login shell but not /usr/bin/bash.  For bash it must be set to /bin/bash.
    Should I file a bug report?
    Here is an example https://bbs.archlinux.org/viewtopic.php?pid=1454302
    By default the archiso has /usr/bin/zsh set as the root login shell.  Line 10: https://projects.archlinux.org/archiso. … irootfs.sh

    qwerty12 wrote:I haven't bothered testing this hypothesis, but my guess is that it is because /etc/shells has entries for both /bin/zsh and /usr/bin/zsh but only /bin/bash for bash.
    To test your hypothesis, I added /usr/bin/bash to /etc/shells and changed the login shell. 
    I was still blocked by PAM from logging in with ssh.

  • 24" iMac will only boot in safe mode

    Here is the short version:
    I have a 24" iMac Core 2 2.16 GHZ with Lion installed (has been for a long time).  It will only boot successfully in safe mode.  The AHT Extended tests do not report any problems.  I have reset PRAM and SMC.  Nothing helps.  Normal boot process will get to the point where it switches from the Apple logo with spinning wheel to where it would normally switch the OSX GUI and login screen.  Instead the screen is all white or gray.  The exact same problem happens if I try to boot from an OSX Install DVD or USB and also my DiskWarrior DVD.  Since safe mode works, my guess is that the problem is with the video card and the normal color depth that the Mac boots to.  In Safe Mode it is in reduced colors.
    Since safe mode works, I have all of my data backed up to an external drive.  If I could boot from an install disk, I would have already wiped the disk and done a new install, but I cannot do this!  I am assuming this is a hardware problem and given the age of this iMac I am out of luck.  I ordered a new system last night, but if it is possible to get this one working again, I would like to be able to give it to a relative who could use it.  So if anyone has any ideas, it would be appreciated.
    Just slightly longer version:
    Been using this system since 2007.  Used to use it for work, now it is the home media hub where we sync our iOS devices.  It has had Lion installed for probably a year now and has always worked great.  A few weeks ago, it started locking up whenever my son was playing Minecraft.  I would have to power off the system to get it back.  I assumed it was a Java problem.  I tried fixing disk permissions etc. but nothing solved it.  Anyway, last week I was downloading App updates in iTunes when the system locked up again.  The mouse would move around but I could not Force Quit anything or really do anything.  So I had to power off the system.  That is when the boot problems started.  Since that happened, the system has not come back with a normal boot.
    Thanks for any ideas/help.  If someone thinks this is fixable, I can bring it to my local Apple service dealer.  I do not want to pay them $100 just to have them tell me it cannot be fixed or needs a new logic board or something like that which would not be worth buying.
    Mark

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in safe mode.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    The commands may line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Triple-click the line of text below to select it. Copy the selected text to the Clipboard (command-C). Then click anywhere in the Terminal window and paste (command-V).
    find /Sy*/L*/Ex* -type f -name Info.plist -exec sh -c '/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$1" 2> /dev/null | egrep -qv "apple|Accusys|ArcMSR|ATTO|CalDigit|HighPoint|hp-fax|JMicron|print|SoftRAID|stex" && echo ${1%*.kext/*}.kext' {} {} \;
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.
    Step 3
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
    Remember, these steps are all copy-and-paste — no typing. Also remember to post the output.
    You can then quit Terminal.

  • [solved] ssh into autostarted xfce4 session

    I have two remote machines running Arch. They have identical sshd_config, .bashrc and .bash_profile files.
    $ cat .bashrc
    [[ $- != *i* ]] && return
    alias ls='ls --color=auto'
    PS1='[\u@\h \W]\$ '
    $ cat .bash_profile
    [[ -f ~/.bashrc ]] && . ~/.bashrc
    if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
    startxfce4
    fi
    I can log onto both with ssh and conduct the common tasks I perform (ie, no problems), However one gives me the following remark after login:
    Last login: ...
    -bash: !/bin/bash: No such file or directory
    $
    Where in my login sequence might this error be generated?
    Last edited by herOldMan (2014-06-02 18:55:09)

    loafer wrote:...incorrect somewhere i.e. "!/bin/bash" rather then "#!/bin/bash"...
    Thanks, Found it.
    In /etc/profile I have a loop:
    # Load profiles from /etc/profile.d
    if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
    test -r "$profile" && . "$profile"
    done
    unset profile
    fi
    I inserted an echo $profile after the do. I found that the error was thrown on sh vdpau_vaapi.sh, a script which did indeed not have the #.
    This particular machine has the catalyst-hd234k driver installed. I am guessing the file was created when installing it or related packages.
    Thanks

  • I need to know if the last non beta version of firefox supports the google toolbar. I will only update firefox if that is the case!

    one month or two ago i was in NY at a friends house, and he updated firefox and in the new version what happened? "kaput" GOOGLE TOOLBAR GONE.
    There are features in GT that firefox does't provide. I won't live without GT. Therefore i will only update firefox when sooner or later, will come to know that the new version doesn't "kill" GT.

    Google decided that they will no longer produce the Google Toolbar for Firefox beyond Firefox 4. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

Maybe you are looking for

  • I want to sync all my mailboxes and preferences between two computers via iCloud

    I have created a folders under iCloud ~/Library/Mobile Documents called My iCloud Documents and it works like a charm to sync non-icloud app docs between my iMac & MBP.  What I did was creat this folder on both computers and add it to my Favorites in

  • Arguments out of order error

    Hi all, With Sun Studio 10 we get "arguments out of order error" which we don't get with any other comiler or Sun Studio 11. The error is as below: "/build/builds/bczar/Studio/ACE_wrappers/TAO/tao/BD_String_Argument_T.inl", line 14: Error: Arguments

  • Trouble playing/pausing with Zen Micro touch

    I am having a fairly peculiar (and frustating) issue with my new Zen Micro's touchpad. For me, the Play "button" (area) works only sporatically. Here's the symptoms: I can reliably press the Play/Pause button with my thumb, but I can't reliably press

  • Loading .swf, addChild, and removeChild

    Hello all, I'm trying load an swf when you click a button, and load another in it's place when you click a different button.   I'm using addChild to insert the swf onto the stage.  Problem is that every time I click a new button, the new swf is loade

  • Help me get my music back!!! Please:(

    I recently found my old iPod (YAY). So I hooked it up to my new laptop to transfer my songs into my new iTunes library, but none of my songs were showing up on my computer. I hit the eject button and unplugged it and the songs were showing up on the