LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 06-07-2006, 06:26 PM   #1
Farrukh Fida
Member
 
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34

Rep: Reputation: 15
Smile problem


I connected to my remote server through ssh by using my root account
all command were executing normaly
but suddenly
permission denied Error occurs like following

[root@dsas]#ls
permission denied
[root@dsas]#cd /tmp
permission denied

and when i open new terminal and connected by using my root Account
then it behave normaly.

Sir i want to ask that is any permission can apply from any console to any console regardless less both are root user.
for example
pts/1 -------------->has root
pts/4------------------>has root
Then pts/1 user (root) can restrict pts/4 console root user or not please tell me.

Regards
Farrukh Fida
 
Old 06-08-2006, 09:38 AM   #2
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
I am wondering whether you have somehow logged in with a restricted shell, which would deny these commands & others.

check out:

man sh

looking at the -r option & the RESTRICTED SHELL section which is at the end of a very lengthy man page!

Hop this helps you out.
 
Old 06-08-2006, 05:09 PM   #3
Farrukh Fida
Member
 
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by worzel68
I am wondering whether you have somehow logged in with a restricted shell, which would deny these commands & others.

check out:

man sh

looking at the -r option & the RESTRICTED SHELL section which is at the end of a very lengthy man page!

Hop this helps you out.
Thanks Sir for ur coopration
But i can't understand how to use this documentation please give me some examples
 
Old 06-09-2006, 06:28 AM   #4
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
Open a shell and type:

man sh

That will give you the manual page for the shell. The space bar moves pages ahaed. Hitting q will exit the manual.

Good luck.

C
 
Old 06-09-2006, 08:14 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
One think to do is to disable root login to SSH as it's a big security risk. Edit /etc/ssh/sshd_config or whatever the file is called in your distro.

Find the line which enables root login and disable it. You should be able to login as plain user and then swithcing to root user which is more secure.
 
Old 06-09-2006, 11:43 PM   #6
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
ssh root login

We need more information about the setup of the remote server, to figure out how to help you. If the server has been setup by it's administrator to have your login go into a restricted shell, then there isn't much that you can do from your end, apart from contacting the sys admin.

I mentioned the sh or bash man page so that you see how restricted a restricted shell is & see whether this matches the problems you are having.

I am also wondering why/what you need access to on the server. If you are supposed to have access, then the sysadmin should setup your login, so that you have access to the resources that you need.

There is an article all about ssh in the newbies section.

I hope this points you in the right direction, and look forward to your reply with info on the remote server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration