Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't write to cifs share (not even root can write)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Jul 10, 2012 4:55 pm    Post subject: can't write to cifs share (not even root can write) Reply with quote

I have this hp wireless printer that has a card slot which is useful for
various things. I can read and write to the card in dolphin but I cannot
write to it when mounted cifs.

My command (run as root):

Code:
mount.cifs //batprint/MEMORY_CARD cifs_share/ -o "rw,user=anonymous,password=anonymous"


after that, the share mounts properly.

df -h:

Code:
//batprint/MEMORY_CARD  7.3G  186M  7.1G   3% /home/user/cifs_share


but if root tries to copy a file it fails:

Code:
cp vlclog.txt cifs_share/
cp: cannot stat `cifs_share/vlclog.txt': Not a directory


But, like I say, I can read and write to the share in dolphin ...

any help appreciated
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jul 11, 2012 8:17 pm    Post subject: Reply with quote

here's another piece of data

this is what smbclient -L shows (which looks pretty normal to me):

Code:

smbclient -L batprint
WARNING: The security=share option is deprecated
Enter user's password:
Anonymous login successful
Domain=[MSHOME] OS=[VxWorks] Server=[NQ 4.32]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       
        MEMORY_CARD     Disk      FLASH MEMORY PHOTO
Anonymous login successful
Domain=[MSHOME] OS=[VxWorks] Server=[NQ 4.32]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


(I didn't know that hp printers used vxworks however :) )
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 552
Location: uk

PostPosted: Wed Jul 11, 2012 11:16 pm    Post subject: Reply with quote

Maybe this thread is related?

https://forums.gentoo.org/viewtopic-t-928590-highlight-cifsutils.html
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sat Jul 14, 2012 4:26 pm    Post subject: Reply with quote

thanks for the link baann but it didn't help

I've discovered the problem is more general than I thought

I cannot write to cifs shares on localhost

I can mount them but I get the same errors when I try to write

BTW, I'm using cifs-utils-5.4
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum