LinuxQuestions.org
Register a domain and help support LQ
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 04-10-2004, 04:01 PM   #1
night
LQ Newbie
 
Registered: Feb 2004
Location: uk
Distribution: linux 7.3 valhalla
Posts: 7

Rep: Reputation: 0
cant upload to my server


i am having problems uploading to my server with ssh, every time i try to upload a file it says "1 error occured" it tells me permission denied.
can you help me correct this please
 
Old 04-10-2004, 04:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Do you mean with scp?

Do you have write permissions at the destination?

What client are you using?

Perhaps you can increase the verbosity.
 
Old 04-10-2004, 04:41 PM   #3
night
LQ Newbie
 
Registered: Feb 2004
Location: uk
Distribution: linux 7.3 valhalla
Posts: 7

Original Poster
Rep: Reputation: 0
im new at this server buisness. how do i give myself permission to upload to server.
is there a command i have to enter on server to give permission?

im trying to use secure shell to upload

the server is running FEDORA CORE 1

Last edited by night; 04-10-2004 at 04:50 PM.
 
Old 04-11-2004, 06:40 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It depends what user you are working as. Perhaps you should look into file permissions in a bit more detail:
man chmod
man chown
man chgrp
 
Old 04-11-2004, 11:44 AM   #5
night
LQ Newbie
 
Registered: Feb 2004
Location: uk
Distribution: linux 7.3 valhalla
Posts: 7

Original Poster
Rep: Reputation: 0
all these commands are really confusing, no offence.

im a real NEWBIE

you need to tell me exactly what to type to allow me to change files on
the server.

i am the owner of the server, and have the passwords for root and user.

what command do i actually type in to enable me to upload and change files
on the server.

 
Old 04-11-2004, 12:50 PM   #6
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64 14.2, Smoothwall
Posts: 144

Rep: Reputation: Disabled
This page has a fairly good how-to scp:
http://www.chinalinuxpub.com/doc/www...ssh-server.htm
 
Old 04-11-2004, 01:49 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
night, don't take this the wrong way but I can't just tell you how to do it as I don't know your setup. It is not a case of allowing you to do it or not like a simple on off switch. If you are seriously running a server then you should really learn mroe about permissions. Take a look at this document from the LQ Wiki:
http://wiki.linuxquestions.org/wiki/Permissions
 
Old 04-16-2004, 05:03 PM   #8
night
LQ Newbie
 
Registered: Feb 2004
Location: uk
Distribution: linux 7.3 valhalla
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for your help i have got it working now.
 
Old 05-01-2004, 04:29 PM   #9
night
LQ Newbie
 
Registered: Feb 2004
Location: uk
Distribution: linux 7.3 valhalla
Posts: 7

Original Poster
Rep: Reputation: 0
i have been hacked i think!! the server aint showing up on the internet i can access it by lan but no-one else can get in.

when i type in ifconfig it says "command cannot be found"

can you gents/ladies help me?

 
Old 05-01-2004, 04:40 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Try typing /sbin/ifconfig -- generally /sbin isn't in the path of a non root user.

Why do you think you've been broken into? Are you certain it's not because of some network/software failure that people can't access the machine from the Internet?

If you really suspect a compromise you need to immediately disconnect the server from the network. That machine is a danger to you and others if someone else has full control over it. Once you have it off the net, try running a tool such as chkrootkit on it. You can find chkrootkit at http://www.chkrootkit.org . You should use the binaries (ls, netstat, etc.) off of your distro's rescue CD or some other trusted source since the attacker may well have replaced the versions on your systems with ones that will cover his tracks.

Ultimately, if you've been cracked, you'll need to reinstall the operating system and apply all your distro's security patches before reconnecting the machine to the Internet.

But let me ask again, are you certain it's a compromise or just something wrong on your end? There's no need to rush off in a panic, but you DO need to investigate this. One good thing to look for are any user accounts besides root with a UID of 0 -- such accounts have root privileges. Also look for new user accounts that you did not create (your distro came with a number of system accounts like bin, daemon, etc. created by default -- these are OK). If you see any extra UID 0 accounts or any account you did not create that can and has been logged into, you have been compromised. Oh, and use the last command to see who has been logging in.
 
  


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
PHP upload file to other server antony_csf Programming 13 02-04-2005 04:11 AM
ftp server with upload permission Gero Linux - Networking 0 11-19-2004 04:38 AM
Can login to WU-FTP server but cannot upload friddick Linux - Networking 0 08-21-2003 10:00 AM
Can login to WU-FTP server but cannot upload friddick Linux - Networking 0 08-21-2003 10:00 AM
Software to upload pages to Apache server ScreeminChikin Linux - Software 4 01-04-2003 02:56 AM


All times are GMT -5. The time now is 02:31 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