LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-24-2004, 08:43 PM   #16
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406

i see, so you don't have root access to the machine? do you have shell access?
 
Old 02-24-2004, 08:53 PM   #17
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
Alright. I've got two machines. I have one (local) server that I have root access to. It's behind a router, so I can't directly transfer files to it from the Internet. I have two ways to get files into the machine: I can ftp files from another host, such as my Virtual Private Server which hosts my website, or I can transfer files into the server by way of Samba, on one of my windows machines, such as the one I am typing this on.

I ftp'ed into my remote webserver, gzipped the bin directory, then transferred it back to my computer, into /root. Now I am trying to: chmod gzip or mkdir, both of which I also downloaded seperately, so that they are executable, or find some way around having to use chmod.
 
Old 02-24-2004, 09:02 PM   #18
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
transfer mkdir to root and try ./mkdir /bin

-Joey
 
Old 02-24-2004, 09:04 PM   #19
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
mkdir isn't marked executable, so it says "Permission Denied"
 
Old 02-24-2004, 09:09 PM   #20
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
If I could actually edit an inode directly, I might be able to mark the permission bit that way. I know which inode mkdir sits on.
 
Old 02-24-2004, 09:10 PM   #21
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well i did an experiment and if you ftp using your userid on the server it should give you read acces to /bin but i see your point about the chmd thingy....
 
Old 02-24-2004, 09:12 PM   #22
davidbalt
Member
 
Registered: Feb 2004
Distribution: Gentoo -- always from stage1
Posts: 85

Original Poster
Rep: Reputation: 15
I may just solve this using SLAX, as it might prove to be easier than jumping through hoops. however, this makes me recognize the inherent danger in running as root and also of putting all your command-line eggs in one basket.
 
Old 02-25-2004, 12:26 AM   #23
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well good luck, and i know what you mean, i made the mistake once of deleting everything in the /etc/rc.d directory, so i know your pain man...
 
Old 02-25-2004, 02:12 PM   #24
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 31
isn't it the easiest to run knoppix or something similar, mount the harddisk and put the downloaded files in /bin?
 
  


Reply



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
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
Accidentally overwrote /bin/sh roastedmnm SUSE / openSUSE 5 07-26-2005 02:37 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
AaaaAAAaah help, I made a huge mistake :( accidentally moved /bin! yelgnits Linux - General 10 09-02-2004 07:08 AM
Accidentally deleted /usr/bin/net larley Linux - General 2 07-26-2004 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 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
Open Source Consulting | Domain Registration