04-04-2013
Quote:
Originally Posted by
rupeshkp728
Linux is SLES on my work system and Windows is 7 on my home system and both are connected using vpn on my home internet.
That might have been good to know before...
I'm not sure a VPN is good enough. These are usually good for simple, host-to-host pure IP traffic, but SAMBA's a little more complicated than that.
Are they even on the same subnet?
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies
2. Solaris
Hi All
I am new for Solaris and, I have configured SAMBA on my SUN10 Network machine and it's working fine.
can anyone tell me how to mount windows share on my SUN10 machine.
Thanks in advance
daya (2 Replies)
Discussion started by: daya.pandit
2 Replies
3. Red Hat
Hi,
Please let me know whether I can mount a windows share on Redhat, which does not have Samba installed. The constraint is that I cannot install Samba .
Looking forward for a possible solution. (1 Reply)
Discussion started by: jksena
1 Replies
4. UNIX for Advanced & Expert Users
I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password=""
mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies
5. Shell Programming and Scripting
Hi,
Please can somebody advise me on the issue where I have a Samba mount created for one of the directories with read only access to all the IP's in the network.
Now beside read only access I want to provide Modify access also for two IP's.
Please advise.
Best Regards,
Shazin (5 Replies)
Discussion started by: Shazin
5 Replies
6. Solaris
I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)???
My Samba share (in smb.conf)
/home/pickup
I want that all Window users get it mounted... (3 Replies)
Discussion started by: verdepollo
3 Replies
7. Solaris
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
8. UNIX Desktop Questions & Answers
Hi guys,
I'm trying to mount a share from Win2003 on AIX with ntlmv2. It doesn't seem to work as Windows keep complaining about a wrong username/password.
I've added "client ntlmv2 auth = yes" to smb.conf.
I have tested the account/username/hostname/ip address with smbclient and it seems... (4 Replies)
Discussion started by: kress
4 Replies
9. Red Hat
I am able to mount samba but it just won't mount when i reboot system
what is stopping it from mounting after reboot?
I mounted before reboot but right after reboot...i ran mount
# mount
/dev/mapper/vg_sda2-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs... (0 Replies)
Discussion started by: nokia3310
0 Replies
10. Shell Programming and Scripting
Heyas
At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it.
EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...).
Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.16.3 2010-06-11 SHELL-QUOTE(1)