Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The last fews weeks, I've been having issues using SSH on
one of our servers.
I can't think of any changes to the system - no updates, etc...
OS - Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-12etch2)
I received the following error when trying to use SCP or SFTP -
command-line: line 0: Bad configuration option: PermitLocalCommand
I looked at the sshd_config file and it was edited on 12/12. I did not
edit the file and no one else has access to this server (at least, no
one officially has access). Every line in the config was commented out.
I tried adding PermitLocalCommand and uncommenting the config file, but to
be honest I'm not sure what needed uncommented. After researching the
error for a few days on google, I tried to uninstall and reinstall SSH.
The uninstall went fine, but when reinstalling I receive the following
Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-9etch3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/openssh-client_1%3a4.3p2-9etch3_i386.deb (--unpack):
unable to make backup link of `./usr/bin/scp' before installing new version: Operation not permitted
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-9etch3_i386.deb) ...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a4.3p2-9etch3_all.deb) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried to change permissions on the bin file, as root, but receive
chmod: changing permissions of `/usr/bin/scp': Operation not permitted
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda7 on /home type xfs (rw,usrquota,grpquota)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sda2 on /usr type ext3 (rw)
/dev/sda3 on /var type ext3 (rw)
lsattr -v -d /dev/sda2
lsattr: Operation not supported While reading flags on /dev/sda2
Thank you SO much! I wasn't aware of the lsattr command, however, when I went to man
the entry before issuing the command I became aware of 'chattr'. Which lead me to
remove the option that apt could not change/modify the file. Again, thank you.
I've successfully reinstalled ssh and all is working well!