Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Session request failed (Called name not present) Post 49302 by Spetnik on Tuesday 30th of March 2004 03:26:22 PM
Old 03-30-2004
Session request failed (Called name not present)

I have the following shell script to map a drive to a windows machine:

Code:
echo Enter password:
stty -echo
read passwd
stty echo
mount -t smbfs -ousername=myusername,password=$passwd //192.168.2.5/sharename /mnt/mountname

It works fine and the share mounts, but for some reason I get this error:
4615: session request to 192.168.2.5 failed (Called name not present)
4615: session request to 192 failed (Called name not present)

Anyone have any clues?
 

8 More Discussions You Might Find Interesting

1. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

2. UNIX for Advanced & Expert Users

30494: session setup failed: ERRDOS

Hi, on a Linux RED HAT I issue the following to mount a shared filesystem on a Win server 2003 and it fails : # smbmount //172.16.0.42/eb_depot /mnt/eb_depot -o username=domaine/Administrateur rw Password: 30494: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection... (0 Replies)
Discussion started by: big123456
0 Replies

3. Windows & DOS: Issues & Discussions

Samba (SMB) client fails: "Called name not present"

Hi, I issue smbclient on a Linux REd hat server : smbclient -L ***.16.0.42 -U domaine/Administrator Password: Domain= OS= Server= Domain= OS= Server= Sharename Type Comment --------- ---- ------- IPC$ IPC IPC distant ... (0 Replies)
Discussion started by: big123456
0 Replies

4. Linux

3550: session setup failed: ERRDOS

Hi, we have re installes our Windows domain and Activedirectory, and from then until now we can not mount shared windows filesystems on Linux server and we receive : mount -t smbfs -o username=user1,password=xxxxx //xxx.16.0.xxx/dir /mnt/dir 3550: session setup failed: ERRDOS - ERRnoaccess... (0 Replies)
Discussion started by: big123456
0 Replies

5. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

6. Solaris

PTY allocation request failed on channel 0

Hello Admins, Anybody faced this issue while logging through ssh on solaris: I am getting this error now. I was able to logged in before. Now I am getting this error. Any idea? (3 Replies)
Discussion started by: snchaudhari2
3 Replies

7. UNIX for Advanced & Expert Users

System call failed with 127 .. after 500 times when called in loop

Hi Experts, I have a code like this. ===== #include.... int main() { int count = 0; while(1){ printf("\n Interation number is: %d \n ",count); rv = system(" test.sh > log.txt " ); if (-1 == rv) { printf("Could not generate static log: error... (12 Replies)
Discussion started by: binnyjeshan
12 Replies

8. Solaris

/dev/ptmx issue session_pty_req: session 0 alloc failed

I've got a Solaris 10 server that got a corrupted root filesystem. After being forced to run fsck against it, the OS is now up and the filesystem read/writable. However, ssh from any account other than root fails with the following error: PTY allocation request failed on channel 0 On the... (0 Replies)
Discussion started by: michaeltravisuk
0 Replies
escape(1)							Mail Avenger 0.8.3							 escape(1)

NAME
escape - escape shell special characters in a string SYNOPSIS
escape string DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result. EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string: $ var='; echo gotcha!' $ eval echo hi $var hi gotcha! $ Using escape, one can avoid executing the contents of $var: $ eval echo hi `escape "$var"` hi ; echo gotcha! $ A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient: #!/bin/sh formail -x to -x cc -x resent-to -x resent-cc | fgrep "$1" > /dev/null && exit 0 echo "<$1>.. address does not accept blind carbon copies" exit 100 To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt script: bodytest reject_bcc `escape "$RECIPIENT"` SEE ALSO
avenger(1), The Mail Avenger home page: <http://www.mailavenger.org/>. BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells. AUTHOR
David Mazieres Mail Avenger 0.8.3 2012-04-05 escape(1)
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy