Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-01-2004, 10:25 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
More on "chmod -R 777 /*"

I know this has been asked (and answered) before. Here's a new turn:

I don't have physical access to the box but I do have webppliance running so I can upload and execute scripts on it. Obviously scripts are executed under non-root credentials.

At the moment my primary goal is to set /etc/ssh/* permissions so that I can ssh in and continue from there.

Question: Is there any way to change current user credentials in a script?

The things I tried:
"su" - needs stdin attached to tty so I can't feed it the password from a file
"sudo" - is not installed (and /var/* is 777 anyway)
"expect" - is not installed
"cron" - I can modify /etc/crontab but it refuses to execute tasks, old or new

Anything else to try?

Any help will be appreciated,
Old 02-02-2004, 10:25 AM   #2
LQ Newbie
Registered: Feb 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Progress so far:

I replaced one of the startup scripts in /etc/rc.d/init.d with modified content and restarted the service from webppliance. The startup scripts are running under root so I was able to fix permissions on few select files in /etc and ~homedir/.ssh. Now ssh seems to be happy and thanks to most helpful folks here I fixed permissions on most critical system files. There's still a few left and that I'll be fine-combing manualy.

This site is a great resource for Linux newbees, thanks guys


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Why doesn't a wildcard chmod change "dot" files/directories? jht2k Linux - General 1 08-09-2004 02:31 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
"chmod" vs. "attrib" netsted Linux - General 2 05-12-2004 01:17 PM
accidently set "chmod -R 777 *".. need help? scorpatron Linux - General 10 12-05-2003 03:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 PM.

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