Problem with command mount


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem with command mount
# 1  
Old 12-19-2013
Problem with command mount

Hi,

I have a problem with the command mount with a password with special character

Code:
mount -t smbfs '//itransfert_cs:password@IP/itransfert/1-Arrivees/Vers_K2' /share

the password contain a * and a @

I try to quote but don't work, replace the @ with %40 and try to escape with \ but don't work...
I don't understand...
I'm working with apple bash
# 2  
Old 12-19-2013
I once had issues with my apple and it came from its internal firewall... have you checked?
Then using @ in a passwd is far from being a good idea... on HP it means erase the buffer ( the typed line ...) until you are logged and have stty set...
# 3  
Old 12-19-2013
vbe, i can mount this folder in a applescript but not in a script shell, the @ and the * in the password is impose.
It is impose by my company.
thx
# 4  
Old 12-19-2013
try:
Code:
mount -t smbfs //itransfert_cs:pa\*sswor\@d@IP/itransfert/1-Arrivees/Vers_K2 /share
or
mount -t smbfs //itransfert_cs:"pa\*sswor\@d"@IP/itransfert/1-Arrivees/Vers_K2 /share

or using a variable PASSW=password and use $PASSW
# 5  
Old 12-19-2013
i already test your 2 suggests and the variable but don't work

thx
# 6  
Old 12-20-2013
that means without single quotes... what error message do you get then?
# 7  
Old 12-20-2013
You could try using the -N option, and storing the password in a file (which from a security perspective alone, has to be preferable?)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Mount problem with Linux

Hello, I want to mount a directory with nfs (v3). Server HP-UX 10.20 Client Centos If I export the path "/tausch" with access control for hosts with the command mount -t nfs <SERVER_HP-UX_IP>:/tausch/ /mnt/mnt_bach2/ /etc/exports: /tausch ... (8 Replies)
Discussion started by: nuts
8 Replies

2. Linux

problem in mount

every day i must type # mount -a in the workstation to mount the directory from the server . note 1- fstab is very good no problem in it 2- the network in this workstation is stable 3- i check every thing in this workstation but i dont see any problem 4- the O.S RedHat 3u9 every day the... (1 Reply)
Discussion started by: ayman
1 Replies

3. Red Hat

mount problem 3u9

every day i must type # mount -a in the workstation to mount the directory from the server . note 1- fstab is very good no problem in it 2- the network in this workstation is stable 3- i check every thing in this workstation but i dont see any problem 4- the O.S RedHat 3u9 every day... (3 Replies)
Discussion started by: ayman
3 Replies

4. Shell Programming and Scripting

shell script problem , sudo mount command

cat test.sh sudo mount -t vfat /dev/sda7 /media/Ddrive If i double click the test.sh file and select run in terminal then the terminal prompts for password. How can i avoid typing password? Or if i double click test.sh file and select run then nothing happens. What i'm trying "Double... (3 Replies)
Discussion started by: cola
3 Replies

5. UNIX for Dummies Questions & Answers

usb mount problem

Hi friends, when i boot into my linux system, i am not able to use my USB device while it works on window. i know mount command but it seems my USB does not detected and when i insert my USB into USB port .. and run fdisk list command it does not show any additional device . normally... (2 Replies)
Discussion started by: johnray31
2 Replies

6. Linux

Mount problem

well i have an NFS server setup on a pc "1st server" running Fedora Core 4 and i need to mount this from a non-root user. But when i try this i get this freaking error "mount: only root can do this". i do have the entry in fstab file and i tried following solution (no one are working) entry in... (1 Reply)
Discussion started by: sydney30
1 Replies

7. Solaris

Problem with mount remot..!!

hi all... when I try to mount filesystem on solaris appear me Permission denied this is do it: mount -F nfs <remote file system> <mount point> mount -f nfs remot_server:/share /share when i run this line: nfs mount: server_remoto:/share: Permission denied what i need to do? Regards.. (4 Replies)
Discussion started by: chanfle
4 Replies

8. UNIX for Dummies Questions & Answers

NFS mount problem

Hello, I'm trying to create an NFS mount on server1 to server2. From the man pages I think I'm doing it right: mount server2:/dev/vg60/lvol607 /net1 nfs mount: server1:/dev/vg60/lvol607: Permission denied Do I need to provide login credentials to server 2 somehow? What am I missing? ... (1 Reply)
Discussion started by: FredSmith
1 Replies

9. Solaris

nfs mount problem

I have a NFS share on a Linux server. When I try to mount it on a Solaris 9 server, I get the following message: nfs mount: <nfs-server-name>: : RPC: Program not registered I have a few other Sun boxes and I can mount the share on them without any problems. (2 Replies)
Discussion started by: soliberus
2 Replies

10. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

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
Login or Register to Ask a Question