LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2005, 10:29 PM   #1
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Rep: Reputation: 15
how can find the login IP?


Hi all,

I would like to ask:
There are samba server in my working company and our team can login the server using a share account..

I would like to ask, how can i find the login IP and what they did ?What i mean is that,,sometimes there files added and files deleted in the samba, i would like to find the IP who did that...

Thanks
Alice
 
Old 02-27-2005, 10:59 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
Crank the logging level up (I'm not sure how high you'll need to get the information you want, the samba man pages have more on this) and then the log files will have all the relevant information.
 
Old 02-28-2005, 03:59 AM   #3
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Original Poster
Rep: Reputation: 15
Hi Matir,
I have the root account and would you please tell me more what do you mean by crack the log file?

Thanks
Alice
 
Old 02-28-2005, 12:34 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
I mean, set the log level directive in samba.conf.

log level = 3 is likely to provide you with all the information you need.
 
Old 02-28-2005, 02:40 PM   #5
linuxdream
LQ Newbie
 
Registered: Feb 2005
Location: San Diego, CA
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
The info should be in the samba log file in /var/log/samba and each IP address should have their own log file. That's the default setup for FC3 but you might need enable that type of logging like Matir said.
 
Old 03-01-2005, 01:19 AM   #6
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Original Poster
Rep: Reputation: 15
Hi linuxdream,
As i am just a newbie for linux..would you mind telling me more how to set the level?
Furthermore, i would like to ask....how can i use the man page for samba? man samba?

Here are the log:

[root@localhost samba]# pwd
/var/log/samba
[root@localhost samba]#

[root@localhost samba]# cat alice.log.1
[2005/02/22 09:42:41, 0] passdb/pdb_smbpasswd.cdb_getsampwnam(1369)
unable to open passdb database.
[2005/02/22 09:43:06, 0] passdb/pdb_smbpasswd.cdb_getsampwnam(1369)
unable to open passdb database.
[2005/02/22 09:43:06, 0] tdb/tdbutil.c:tdb_log(531)
tdb(/var/cache/samba/locking.tdb): expand_file write of 1024 failed (Operation not permitted)
[2005/02/22 09:43:06, 0] smbd/trans2.c:set_delete_on_close_internal(2208)
set_delete_on_close_internal: failed to change delet


I don't know what you mean by setting up the log level config file....

Thanks
 
Old 03-01-2005, 09:30 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
Somewhere in your system there is the file that contains the SAMBA configuration. Usually /etc/samba.conf /etc/samba/smb.conf or /etc/samba/samba.conf. In the [global] section of that file, add or change a "log level" line to "log level = your desired level". The levels, IIRC, go from 0-10, with 10 being so much it would generate HUGE logs in no time: 10 is for software debugging, essentially.
 
Old 03-01-2005, 09:34 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 255Reputation: 255Reputation: 255
The lines your looking for in your smb.conf file should look along the lines like this:

Code:
log file = /var/log/samba/%m.log
log level = 1
max log size = 500  # keep last 500k of log files (recommended to keep logs from growing tremendously)
 
  


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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
Newbie: how to turn off the computer, reboot, how to find the login screen, and vt's jimothy05 Slackware 13 09-29-2004 06:48 PM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 07:30 AM
Where to find .profile or .login? sceadu Linux - Newbie 2 03-21-2003 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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