Sponsored Content
Full Discussion: samba log
Top Forums Shell Programming and Scripting samba log Post 302534374 by Raamc on Monday 27th of June 2011 05:46:17 PM
Old 06-27-2011
samba log

Hi guys,

iam using samba utility to grab/delete files from shared to unix.
Code:
/util/samba/bin/smbclient URL/user 'pasword' -U 'AppID' -D Shareddrivepath -c "lcd UnixPath;mget *.csv"

this would extract file from shared drive and would display what file it is extracting while exceuting.

but when i use
Code:
/util/samba/bin/smbclient URL/user 'pasword' -U 'AppID' -D Shareddrivepath -c "rm *.csv"

it is deleting the files in shared drive but is not displaying the filename while executing.

can anyone suggest me how to log the deleted files.

Thanks,

Last edited by Franklin52; 06-28-2011 at 03:43 AM.. Reason: Please use code tags for code and data samples, thank you
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

samba

hello friends i installed samba in solaris x86 pc , and don't have the binari smbadduser i use linux and i'm studing solaris how can i add user in samba of solaris version? and i need smbadduser ? thanks friends (2 Replies)
Discussion started by: themask
2 Replies

2. IP Networking

Samba

:confused: I've been trying to get Samba working on RH7.2 but been failing. Could anyone give me some tips on what I should check to see what I'm doing wrong. I've double check everything. Maybe I could of forgot something. PLEASE HELP. (2 Replies)
Discussion started by: aojmoj
2 Replies

3. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

4. UNIX for Dummies Questions & Answers

samba

hi, i have 2 raids connected via 2 servers to a third server with a third raid. the first 2 export via nfs to the third so that the third has all the data viewable on it. previously i was able to then use samba to export to our macs. i don't recall anything changing, but now i can't view... (0 Replies)
Discussion started by: user23
0 Replies

5. UNIX for Dummies Questions & Answers

Samba

after creating username/passwd, vi /usr/lib/smb.conf file comment = dropoff location path = /tmp/droloc browsable = No available = yes public = no writable = yes printable = no create mode = 777 valid users = tjmann,palexander,bmartin,.... instead of using... (2 Replies)
Discussion started by: tjmannonline
2 Replies

6. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

7. UNIX for Dummies Questions & Answers

Samba and log.nmbd

Hello All, I have an old SGI running IRIX 6.5. Since it was very outdated I moved all users and data to a new Oracle M4000 and stopped Samba from running on the SGI. I have run into a strange problem though regarding log.nmbd file. I noticed that the boot diskspace was at 100% capacity because... (0 Replies)
Discussion started by: jbirkes
0 Replies

8. AIX

Samba

Hello, i install samba on AIX 5.3 and when i try to connect to the shared folder from windows it give me a prompt authentication window to access the server, anyway to allow any user to access that shared folder? i need to access it without the prompt authentication window. Thanks (2 Replies)
Discussion started by: moudmm
2 Replies

9. UNIX for Dummies Questions & Answers

Help with Samba please!

I am having a nightmare getting a new Solaris server to join a domain in order to access some samba shares. I am a newbie to Unix so am learning as I go. Every time I try the net ads join -U administrator command, I get: # net ads join -U administrator Enter administrator's password: ... (9 Replies)
Discussion started by: mgreen81
9 Replies

10. Ubuntu

Samba Help

All; I've done this before, but sure I'm typing in the wrong search terms, so not finding the help I need. What I have to do: Set up Samba, smb.conf, smbclient, fstab and all other settings so I see both the Windows and Linux servers and their shares in the network, via Samba. It's... (19 Replies)
Discussion started by: TBotNik
19 Replies
TDBBACKUP(8)															      TDBBACKUP(8)

NAME
tdbbackup - tool for backing up and for validating the integrity of samba .tdb files SYNOPSIS
tdbbackup [-ssuffix] [-v] [-h] DESCRIPTION
This tool is part of the samba(1) suite. tdbbackup is a tool that may be used to backup samba .tdb files. This tool may also be used to verify the integrity of the .tdb files prior to samba startup or during normal operation. If it finds file damage and it finds a prior backup the backup file will be restored. OPTIONS
-h Get help information. -s suffix The -s option allows the adminisistrator to specify a file backup extension. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup. -v The -v will check the database for damages (currupt data) which if detected causes the backup to be restored. COMMANDS
GENERAL INFORMATION The tdbbackup utility can safely be run at any time. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation. Typical usage for the command will be: tdbbackup [-s suffix] *.tdb Before restarting samba the following command may be run to validate .tdb files: tdbbackup -v [-s suffix] *.tdb Samba .tdb files are stored in various locations, be sure to run backup all .tdb file on the system. Important files includes: o secrets.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o passdb.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o *.tdb located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories. VERSION
This man page is correct for version 3.0 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The tdbbackup man page was written by John H Terpstra. TDBBACKUP(8)
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy