chaitu chaitu
asked on
Is there any copy command is there in linux to copy logs in linux path to my windows sharing directory;
Is there any copy command is there in linux to copy logs in linux path to my windows sharing directory;
copy /root/org/apache/jsp/*.log s c:/sharing/
copy /root/org/apache/jsp/*.log
Hi,
As root type the following commands:
mkdir /mnt/share
smbmount //winpc/shared /mnt/share -o rw
Replace winpc with the IP of your windows PC
Once that is done you can copy the logs from one location to your windows share by issuing the following:
cp /root/org/apache/jsp/*.log s /mnt/share
As root type the following commands:
mkdir /mnt/share
smbmount //winpc/shared /mnt/share -o rw
Replace winpc with the IP of your windows PC
Once that is done you can copy the logs from one location to your windows share by issuing the following:
cp /root/org/apache/jsp/*.log
ASKER
once i give this smbmount //XXX.XX.XX.XX/shared /mnt/share -o rw
its asking password;i have given system password ;i am getting below message.i think permission not there to give read write permissions for sharing directory in windows
Password:
20083: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
its asking password;i have given system password ;i am getting below message.i think permission not there to give read write permissions for sharing directory in windows
Password:
20083: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
Hi,
When it ask for a password what happends if you just hit enter?
When it ask for a password what happends if you just hit enter?
It is using your logged in name as your username when trying to do this. Try:
smbmount username=myname //XXX.XX.XX.XX/shared /mnt/share -o rw
in order to provide a valid username for the remote share, and then enter the matching password.
( (()
(`-' _\
'' ''
smbmount username=myname //XXX.XX.XX.XX/shared /mnt/share -o rw
in order to provide a valid username for the remote share, and then enter the matching password.
( (()
(`-' _\
'' ''
ASKER
smbmount username=myusername //XXX.XX.XX.XX/shared /mnt/
share -o rw
Could not resolve mount point //XXX.XX.XX.XX/shared
share -o rw
Could not resolve mount point //XXX.XX.XX.XX/shared
ASKER
When it ask for a password what happends if you just hit enter?
Anonymous login successful
24229: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
Anonymous login successful
24229: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
>You specified an invalid share name
In which case, the share is not valid for anonymous, or you need to change the name of the share to the correct name.
smbclient -L //XXX.XX.XX.XX
is a very useful command that enables you to see what shares are available.
Just press <enter> when asked for a password.
( (()
(`-' _\
'' ''
In which case, the share is not valid for anonymous, or you need to change the name of the share to the correct name.
smbclient -L //XXX.XX.XX.XX
is a very useful command that enables you to see what shares are available.
Just press <enter> when asked for a password.
( (()
(`-' _\
'' ''
ASKER
smbmount username=myusername ip=//xxx.xx.xx.xx/ /mnt/share -o rw
if u give or dont give any path after ipaddress its giving this message only.
Could not resolve mount point ip=//xxx.xx.xx.xx/.
if u give or dont give any path after ipaddress its giving this message only.
Could not resolve mount point ip=//xxx.xx.xx.xx/.
Look *carefully*. Cut and paste if necessary - there is no / at the end:
smbclient -L //XXX.XX.XX.XX
If you stick a / at the end, then the command probably will try and resolve a mountpoint (and probably fail?)
( (()
(`-' _\
'' ''
smbclient -L //XXX.XX.XX.XX
If you stick a / at the end, then the command probably will try and resolve a mountpoint (and probably fail?)
( (()
(`-' _\
'' ''
smbclient -L //XXX.XX.XX.XX
is the full command - no mount point etc. You are looking to get a list of the shares available. These will be printed to the console.
( (()
(`-' _\
'' ''
is the full command - no mount point etc. You are looking to get a list of the shares available. These will be printed to the console.
( (()
(`-' _\
'' ''
ASKER
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to xxx.xxx.xx.xxx failed (Called name not present)----my system ipaddress printed here
session request to xxx failed (Called name not present)
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to xxx.xxx.xx.xxx failed (Called name not present)----my system ipaddress printed here
session request to xxx failed (Called name not present)
Anonymous login successful
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
\\xxx.xx.xx.xx: Not enough '\' characters in service
?????
The slashes go the other way.
( (()
(`-' _\
'' ''
The slashes go the other way.
( (()
(`-' _\
'' ''
ASKER
i changed but same error
cp *logs /mnt/my_windows_partion
The other option is to use Samba or NFS e.g
Regards
Friedrich