General :: Way To Cp Directories Using Smbclient

Nov 25, 2009

Is there a way to cp directories using smbclient ?

View 3 Replies


ADVERTISEMENT

General :: Copying Files Using Smbclient?

Jun 7, 2010

I have a new network attached storage unit that I'm trying to transfer my data to. On this NAS, it has a very basic linux installed with SSH enabled. Browsing through the programs installed on it, i found smbclient. Am I able to copy files directly from my old NAS to my new one using smbclient?It would sure beat transfering 950GB from my old NAS through a computer then onto my new NAS.

View 1 Replies View Related

General :: Command For Smbclient With No Password?

Jun 25, 2011

I have a samba server setup it works fine for the users with their username and passwords. by executing the following command.

smbclient //fedora.com/one -U bigbob

it prompts password . If i give password i got

smb>

my question is that how can i login if the users doesn't have their passwords(public share) ?.. I mean smbclient command !!

View 1 Replies View Related

General :: Anything Syntactically To Pass Variable To Smbclient?

Feb 23, 2010

I am trying to pass a variable to smbclient (OS X), but the variable is recognized only as its strict text.

Is there anything syntactically I have to do pass a variable created in the shell (bash) to smbclient (or perhaps any other interactive app)? I've seen references to variables as $[variable] or ${variable} but I've not been able to figure out what works.

View 5 Replies View Related

General :: Connecting To Windows 7 Share Via SMBClient

Apr 4, 2010

I am trying to allow my mother's Acer Aspire One (OS: Linpus Linnux Lite) to print on the WIFI Canon Pixma MP620 printer. The rest of the computers connected in the house run some variant of Windows. The printer has been set up to print wirelessly from the Windows computer. Having searched the internet for hours, I have determined that there aren't any drivers for that particular printer.

My potential solutions are:
1. Buy a new printer
2. Install Windows on the Aspire One (Last resort!)
3. Use this piece of software (http://www.printeranywhere.com/), which is installed on my Windows 7 computer which is on 90% of the time, and find some way to install it on Linux. (I tried Wine, and it opened up the installation .exe but when it came to actually installing, returned an error saying it needed to be installed on the same drive. :S)
4. Follow this tutorial (http://justin.yackoski.name/winp/) to print via my computer.

I think I will manage to follow the tutorial fine (as a complete Linux novice!), but I am having some problem with simply connecting to my Windows share folder, which I came across on this line of the tutorial: Test that you can access the share from the linux PC via smbclient. I.e., run: smbclient //windows_pc/spool -U print and make sure you can put a file into that shared directory. After I enter the password, as prompted, is returns:

session setup failed: SUCCESS - 0

When I try: "smbclient -L //WILL-PC -U Will", and then enter my password as prompted, it returns the same error. However if I try: "smbclient -L //WILL-PC -N", it returns: Anonymous login successful. Then my correct Domain, OS and server details. Then the titles: Sharename, Type and Comment

And then the following:
cli_rpc_pipe_open: cli_nt_create failed on pipe srvsvc to machine WILL-PC. Error was NT_STATUS_ACCESS_DENIED
Error returning browse list: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Then the same correct Domain, OS and server details
Then two headings: Server and Comment, each of which have a different entry below them to do with my printer.
Then the two headings: Workgroup and Master, below which there are two different workgroups that we have, and my computer and my sisters laptop.

View 14 Replies View Related

General :: Smbclient Check File Modified Before 'get'

Oct 28, 2010

I checked the smbclient man but could not find any switch to us in combination with 'get' to check if the file has been modified before download.

View 1 Replies View Related

General :: Windows SMBClient - How To Share Folder

Jun 5, 2011

In this tutorial I have shown how we can share a folder from Windows to Linux, [URL]. The author of the video is not responsible if something is broken.

View 3 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

General :: Getting Session Request Failed Whenever Send The Message Using Smbclient?

Nov 25, 2009

I am sending message from linux to windows system as follows echo "test"|smbclient -M <IP Add>But I am getting "session request failed" message . How can I solve it? <Ip Add> in network and reachable.

View 1 Replies View Related

General :: How To Store Files / Directories In Different Different Directories?

Mar 23, 2011

I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.

for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files

like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!

View 7 Replies View Related

Fedora :: Log Into The Samba Server From Smbclient?

Jan 18, 2010

i'm trying to log into the samba server from smbclient but i'm still having this error message:

[root@gab gab]# smbclient -L alain
Enter gab's password:
Connection to alain failed (Error NT_STATUS_CONNECTION_REFUSED)
[root@gab gab]#

View 1 Replies View Related

Fedora :: SMBClient : Command Not Found?

Jun 1, 2010

I've installed the latest Fedora 13 flavour, yum update completed, yum install samba -y

all installed fine.

yum list grep samba shows samba-13 installed however when type smbclient as root it returns

"Command Not Found" and returns me to bash.

yum remove samba
reboot
yum install samba
still nothing

smb[tab] returns : smbd, smbusers and 3 others but none that are smbc*. I'm kinda stuck for my windows shares at this point.

smbd i presumed was the deamon so i triggered that but smbclient still cant be found and when i ran smb(something) status it stated that the samba service was up and running.

users list is configured but i believe this is an issue with the command.

View 3 Replies View Related

CentOS 5 :: Smbclient Can't Overwrite Files?

Jun 17, 2010

I'm using CentOS 5.5 with smbclient 3.0.33-3.28-el5 (latest version in repo), and I can't overwrite files in my smb store.The CentOS box is merely a client of the smb share,and I am not the admin for the Windows server that hosts the share, so there isn't anything I can do server side. But I do have write permission to the server. I'm 95% certain that the server runs Windows Server 2003.I can create a new file,but if I need to overwrite it I need to delete the file, and then copy the new version over.My Windows XP machine can overwrite files perfectly fine.

Using the cp command I'll get this error: (/mnt/storage/foo.txt already exists)
[jonescb@localhost ~]$ cp foo.txt /mnt/storage/foo.txt
cp: cannot create regular file `/mnt/storage/foo.txt': No such file or directory`

View 5 Replies View Related

Ubuntu Networking :: Smbclient Not Working With Windows 7?

Jun 4, 2010

I have been using Ubuntu for a while now and have never run into something like this that I haven't been able to find on the forums. My problem is quite similar to this post [URL]

Description:

I have a Windows 7 x64 machine and a Ubuntu 10.04 Server machine. I also have a share called "stuff" on the Windows machine. I can run the following command and it mounts the share successfully :

Code:
sudo mount -t cifs //windows_machine/stuff -o user=usr,password=pswd /path/local/folder
However, if I run smbclient it fails with this error

Quote:

session setup failed: SUCCESS - 0

[Code].....

View 6 Replies View Related

Debian :: SMBClient Not Installed But Can Access Samba Share

Apr 13, 2010

How come I can access samba share, and windows workgroup computer and don't have any samba package installed? Sudo aptitude show smbclient says not installed. Sudo aptitude show samba says not installed.

View 2 Replies View Related

Fedora :: Login To The Samba Server Using Smbclient But It's Not Working?

Jan 14, 2010

My OS is F11 and i've two systems; i'm running Samba server on one system and i've login on the client system and trying to login to the Samba server using smbclient but it's not working.Can someone give me the command to login to the Samba server using smbclient!

View 1 Replies View Related

Ubuntu Networking :: Send Message Through Terminal With Smbclient?

Apr 26, 2010

i am trying to send message through terminal with smbclient, i have searched the net and found this command

Code:
smbclient -M <hostname>
now i am confused on hostname, which i open the network folder i see to icons
1. is my laptop
2. Windows Network

when i enter Windows Network folder i see 2 more icons
1.MSHOME
2.WORKGROUP

and when i enter MSHOME folder i see one icon 1. MIRZA-SAAD this is the computer which has xp in it i want to send message to it with smbclient now how when i write this command i see this error

Code:
amir@amir-laptop:~$ smbclient -M //MSHOME/MIRZA-SAAD/
Connection to //MSHOME/MIRZA-SAAD/ failed. Error NT_STATUS_BAD_NETWORK_NAME

View 7 Replies View Related

Ubuntu :: Can't Logon To Active Directory After Installing Smbclient?

Jun 5, 2010

I am having a problem using smbclient on my Ubuntu 10.04 workstation. I use likewise open5 to authenticate to a windows server 2003 domain controller. I installed the smbclient utility mounted the network drives to the local desktop, then all of a sudden I cannot logon to my active directory domain controller. If any one knows what I am talking about what am I doing wrong?

Do I need to change my smb.conf file? Or do I need to download another repository or utility?

View 1 Replies View Related

Networking :: Running SMBClient From Root Account Does Not Work

Jan 2, 2010

I reinstalled Slackware lastnight and was configuring Samba today and when I tested the config (I had just copied over my working smb.conf) I kept getting an NT_LOGON error when I run:
PHP Code:
smbclient -l MYSERVER
from the root account after entering root's password.

I can log in through konqueror if I pass the credentials of the only user defined in smb.conf after I'd run smbpasswd for that user, and if I bring up a full terminal session for that user smbclient works fine, but it seems odd that root can't access the shares on the machine. I may have just never noticed this before because I usually test from a user account, but is this normal since I specifically only define one user where samba is concerned? I'm mainly asking because I was getting some unexpected write errors last night while I was installing the multilib libraries for Slack64 as root and I'm trying to verify everything.

View 2 Replies View Related

Ubuntu Servers :: Smbclient Connects To Windows 7 But Can't List Any Files

Sep 23, 2010

I've recenelty setup a backup server using Ubuntu server 10.4 x64.

I'm currently attempting to get the server to connect to windows vista and windows 7 shares on the network.

When running the command

Code:
smbclient \\hazard-pc\test

a prompt for a password appears, I enter nothing and am then presented with. I am not using passwords on the windows shares.

Code:
smb: >

If I attempt to list the directory using ls then I get the following error:

Code:
smb: > ls
NT_STATUS_ACCESS_DENIED listing *
57138 blocks of size 1048576. 32044 blocks available
smb: >

I've looked on google and on here and have not been able to find anything that works. I also don't have any xp machines to test with either.

I discovered this issue whilst trying to configure the backuppc service using smb.

View 1 Replies View Related

CentOS 5 Networking :: Smbclient Works Nautilus Doesn't Connect To Share?

Sep 20, 2010

I can use smbclient -U name //ip.adresss/"My Place" to connect with no errors, but nautilus will not open the folder. nautilus discovers the computer but not the folder. maybe I need some debugging info from nautilus...

View 11 Replies View Related

CentOS 5 Server :: Mount Cifs Does Not Work, But Smbclient Does. Empty Directory In First Case?

Feb 18, 2009

I am trying to mount a samba share using an fstab entry

//srv1/Corporate /winfiles cifs user,uid=0,rw,noauto,suid,credentials=/root/wnmount_credentials.txt 0 0

The mount appears to complete cleanly, however when I browse the directory /winfiles it is always empty.The smbclient command works properly using the same credentials.The /root/credentials file looks something like this

username=********
password=********

View 5 Replies View Related

Red Hat / Fedora :: Restrict Users To Their Home Directories And Allow Admins To Have Different Home Directories?

Jan 20, 2010

Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.

So far I have created:
chroot_list
user_list

[code]....

View 1 Replies View Related

General :: How To Exclude Sub Directories From ZIP CLI

Jul 22, 2010

I'm trying to create backup/archive my Ubuntu 10.04 system files (so I can restore it in case my system get corrupted). More specifically, I'm trying to zip the important files in my root directory not including my home directory (which includes my documents which I backup separately/more frequently) to an external hard drive attached via USB (called 'My Book').Since File Roller didn't give me quite the level of control I was looking for, I created a script that I could execute to backup and archive regularly.

View 1 Replies View Related

General :: Delete All Except Three Specified Directories?

Jul 29, 2010

How would I delete everything in a directory except for three specified directories?

So far I discovered I can omit the directories like so in a find search code...

View 6 Replies View Related

General :: Directories Exceeding A Certain Size?

Feb 26, 2010

I misread this question and thought it was asking something I've needed for a long time. My question is slightly different: how to find directories whose contents exceed a certain size. Is there any *nix way to do this?

View 3 Replies View Related

General :: Access To Certain Directories To Ssh Users

Apr 17, 2010

I want to restrict access to certain directories to my ssh users but allow them to read files by known path from there(mostly it's meant to be done by applications).

View 2 Replies View Related

General :: Delete Directories Smaller Than X

Jun 14, 2010

How can I delete Directories which are smaller than, say, 1000 KB?

I already have a file list from the command:

But I don't know how to proceed.

Update:

The output of:

Is something like:

View 2 Replies View Related

General :: Smart Tab Completion (for Directories)?

Aug 4, 2010

Are there shell versions that have a more intelligent tab completion? I'd like to be able to type cd foo-<TAB> Then it would show me the possible completions along with numbers that I can type to select one of them:

cd foo-<TAB>
(1) foo-bar1 (2) foo-bar2 (3) foo-bad

So, after <TAB> I would type 3 and it would take me to foo-bad. Alternatively, using the arrow keys instead of typing the number would be fine.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved