LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-09-2009, 12:20 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Who keeps putting same file onto Samba share


OK, i have a samba share where everyone connects anonymously since they aren't prompted for a username/password from their PCs. Somehow the same file keeps reappearing over and over in a folder where all new files get sucked out of. How do i tell who's putting that file in the folder every 2 minutes. can i tell an IP or anything?
 
Old 09-09-2009, 04:47 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
i have a samba share where everyone connects anonymously since they aren't prompted for a username/password from their PCs.... [SNIP]
It looks like you are running a completely "open" system.
Are you really that surprised that mysterious files are being up / down loaded?
Do you have any idea of what the implications of this might be?

Time to read up on security, access rights, mail relays, and all I think.

If your computer is connected to the Internet, you need to learn how to lock it up and prevent others from taking advantage from you.

Please get busy before your ISP disconnects you for relaying spam, or worse.
 
Old 09-09-2009, 04:50 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Well, its an internal system, and it wasn't really a mysterious file, it was an internal file. it ended up being stuck in a file moving process on another server, it couldn't delete the original file so it kept moving it to this server. I guess I was more just curious as to if there was a way to tell from the server getting the file where it actually came from.

And yes I agree having it open like that is a bad idea, but that's how I inherited it.
 
Old 09-09-2009, 05:58 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Then you should setup some security for the system. It would be embarrassing and possible fatal for you and your company or boss. Not that difficult to harden a system. Do a search here on LQ as this very subject has been covered many times.

Take a look at the 'Security Section' of 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 09-10-2009, 07:40 AM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks. I definitely do plan on hardening the system. But in the meantime, is there actually an answer to the question I asked? My guess is no based on the lack of response to my actual question. I do appreciate the posts about how wrong this setup is, hopefully it helps someone who doesn't know better about securing a server.
 
Old 09-10-2009, 06:37 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The short answer is no, files do not contain any info about where they came from... especially if all users are anonymous.
I don't know if the samba server can be induced to log all accesses, specifically which files created when/where... maybe ...
 
Old 09-10-2009, 07:18 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
that was kinda what i was thinking, but thanks for confirming.
 
Old 09-10-2009, 08:10 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
I have not played with samba log levels but the higher you go the more verbose they become (and much much bigger in size). You might be able to match an IP address to the share where the file is being written. You can create log files for each IP address too.

http://oreilly.com/catalog/samba/cha...k/ch04_08.html
 
Old 09-11-2009, 07:33 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
ok, i'll check out the link, thanks.
 
  


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
Keep file rights with samba share eRJe Linux - Server 1 08-14-2008 06:54 AM
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 10:12 AM
possible to see a Linux SAMBA File share... Russ3482 Linux - Software 1 08-11-2004 02:17 PM
samba as a file server/share mnadeemrao Linux - Software 0 10-30-2003 05:21 AM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

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

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