unable to mount windows share on linux 5.1

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat unable to mount windows share on linux 5.1
# 1  
Old 04-01-2011
Question unable to mount windows share on linux 5.1

Hi,

I am using redhat linux 5.1 - 64bit,

using command

Code:
mount -t cifs //192.192.192.192/SW/Ex  /192.192.192.192 -o username=test

I am getting below error.

Code:
mount: block device //192.192.192.192/SW/Ex is write-protected, mounting read-only
mount: cannot mount block device //192.192.192.192/SW/Ex read-only


Please suggest


Regards,

Manoj
# 2  
Old 04-01-2011
Please be aware that there is no "Linux 5.1" and you are referring to Red Hat Enterprise Linux 5.1, which is a distribution. The kernel is Linux (or collectively the different distributions based on that kernel) which is still on version 2.6.x.

That will hopefully clear up some confusion people may have.


Does the user for the share you have specified have write permissions?
# 3  
Old 04-01-2011
Take a look at this :

Using SAMBA/CIFS to access Windows Shares - PrincetonUnixFAQ

And you can specify the rw option for the mount command
# 4  
Old 04-01-2011
The reason probably is that you're trying to mount the share without a password, and mount won't ask you for one. You'll have to install the smbfs package, and have these options available to successfully mount:
  • mount -t cifs -ousername=<user>,password=<pw> //host/share /path/to/mount: will work, but the username and password will be available to everyone on the machine.
  • mount -t cifs -ocredentials=/path/to/credential.file //host/share /path/to/mount: Tells mount.cifs to use the credentials from a file, which contains 2 lines:
    Code:
    username=<user>
    password=<pw>

  • mount -t cifs -ousername=<user>,guest //host/share /path/to/mount: Mount the share as the guest user
See this documentation and man mount.cifs for more information and options.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to mount previously-working NFS share from NIM to LPAR

Right, now that I've finally worked out this website, I'll ask my question! I am having an absolute nightmare with NFS on AIX. I have used it many times, and I know what I'm doing, however I cannot fathom what is going on here. I have 2 LPARs, sitting on the same physical host. They are... (12 Replies)
Discussion started by: tmooredba
12 Replies

2. AIX

AIX cifs: mount Windows Server 2008 share ?

Hello, I've been using AIX cifs to mount windows XP shares with no problems till now. Now it's Windows Server 2008 R2 - no go: mount -v cifs -n host1/user1/pass1 /share1 /mountpt1 There was an error connecting the share or the server. Make sure the lsdev command shows that device nsmb0 is in... (6 Replies)
Discussion started by: vilius
6 Replies

3. Solaris

mount windows share folder

all,,i need help,,i try to mount a windows 2000 share folder to my system,,i already userd smb mount,mount -F and bunch of stuff and none is working,,can anyone give me a script to this?? PS : when i use mount -F i got this message : nfs mount: insufficient privileges ,,, is it must be root ? (6 Replies)
Discussion started by: Cellscript
6 Replies

4. Solaris

how to mount Windows NFS share on solaris

Hi, How can i mount an NFS share on a solaris machine a filesystem ? I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris. Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies

5. Red Hat

Mount Windows share on Redhat, WITHOUT Samba?

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

6. UNIX for Advanced & Expert Users

can i mount nfs share on windows 2003 server

this is probably a bit dumb ...but i read somewhere that one of the nfs versions can be mounted on a windows 2003 server ..if yes ..does anyone know how this can be achieved (1 Reply)
Discussion started by: tarunicon
1 Replies

7. Solaris

How to mount windows Share on solaris using SAMBA

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

8. UNIX for Advanced & Expert Users

How to Mount a Unix share drive on Windows

We are trying to mount a Unix share drive on a Windows 2003 server to avoid transfering files accross the network using sftp. I can see shared drives on the Solaris server using the "share" command. How can I mount the drives on my Windows server so that I can read them directly. Do I need... (2 Replies)
Discussion started by: rbdenham
2 Replies

9. AIX

Unable to mount NFS share during boot

Hello Everyone, I have a pseries machine running AIX 4.3.3 that has an invalid IP in /etc/hosts. During a boot the system hangs because it's trying to mount an NFS share to this invalid IP. I've tried to boot the system from a mksysb (not sure if the device was defined as rmt0) and AIX CD... (0 Replies)
Discussion started by: jlslhills
0 Replies

10. UNIX for Dummies Questions & Answers

using the mount command to connect to a windows share

Until recently I have been using the following command successfully to connect to a windows share: mount -t smbfs -o username=my_username,password=my_password /home/temp //oldserverx1/openexchange But from today, I've been getting the following error: INFO: Debug class all level = 1 (pid... (1 Reply)
Discussion started by: cw1972
1 Replies
Login or Register to Ask a Question