The DNS Guys |
Anycast DNS 25 Nameservers Worldwide |
DNS Failover Host Monitoring & Auto Rollback |
Outbound SMTP Smart Relay, SASL |
| Subversion Hosting OpenID Servers & XMPP |
DNSSEC TSIG & Secondary DNS |
easyRoute53 Amazon Route53 GUI |
![]() ![]() |
Nov 16 2011, 08:40 AM
Post
#1
|
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 4 Joined: 16-November 11 Member No.: 15,691 |
Hi,
I want to write a shell script that will automatically connect to a windows share server and then do some stuff with the files there each time I log in. I have a few problems with this. I can connect to the server with the GUI by going to Places->Connect to Server. With this, I can connect to the server and then manipulate the files through the file browser GUI thing. However, I can't figure out how to connect to the server or, once connected, manipulate files via the shell. When I try to connect with this command: "/usr/bin/smbclient //ntserver-quota/<directory>", all I get is "session setup failed: NT STATUS_LOGON_FAILURE". The distribution is Scientific Linux. Thanks, I appreciate your help. |
|
|
|
Nov 16 2011, 11:46 AM
Post
#2
|
|
|
Its GNU/Linuxhelp.net ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Support Specialist Posts: 1,630 Joined: 23-January 03 Member No.: 360 |
As root try mounting the share via
mount -t cifs //server_name/share_name /mnt/mountpoint Be sure to use the actual server and share name. Also be sure to create a mount point if needed. |
|
|
|
Nov 17 2011, 06:52 AM
Post
#3
|
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 4 Joined: 16-November 11 Member No.: 15,691 |
Thanks for the reply. That won't work, though, because I don't have root access.
|
|
|
|
Nov 17 2011, 07:12 AM
Post
#4
|
|
|
Its GNU/Linuxhelp.net ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Support Specialist Posts: 1,630 Joined: 23-January 03 Member No.: 360 |
Here is a howto with an example showing the correct syntax.
http://tldp.org/HOWTO/SMB-HOWTO-8.html |
|
|
|
Nov 18 2011, 08:53 AM
Post
#5
|
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 4 Joined: 16-November 11 Member No.: 15,691 |
I already read that guide. Any of the commands in it just give the same error message that I mentioned, or a similar one.
|
|
|
|
Nov 22 2011, 05:51 AM
Post
#6
|
|
|
Whats this Lie-nix Thing? ![]() Group: Members Posts: 4 Joined: 16-November 11 Member No.: 15,691 |
Any further suggestions, anyone?
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 09:17 PM |