FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-29-2010, 02:29 PM
Camaleón
 
Default samba: mounting as cifs not working (works in Windows though)

On Thu, 29 Jul 2010 10:17:48 -0400, H.S. wrote:

> On 29/07/10 12:28 AM, H.S. wrote:
>> On 28/07/10 11:46 PM, Tom H wrote:
>>>
>>> Please try again
>>> smbclient -L //<server_ip_address> -U<user> for both users
>>>
>>>
>>>
>> Aha! Works for both users.
>>
>> Here is the output for my username on sambaserver machine named "red":
>> $ smbclient -L //192.168.0.8 -U hs
>> Enter hs's password:
>> Domain=[SMBWG] OS=[Unix] Server=[Samba 3.4.8]

(...)

> My previous post might have been misleading a bit. By "works" I meant
> the smbclient command works. But mounting the share is still a problem.

Mmm... how about using?

***
mount -t cifs //192.168.0.8/share -o username=hs /mnt/share
***

(after issuing that, review "dmesg" last messages because samba logs
seems to be unhelpful :-?)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.29.14.29.49@gmail.com">http://lists.debian.org/pan.2010.07.29.14.29.49@gmail.com
 
Old 07-29-2010, 02:48 PM
"H.S."
 
Default samba: mounting as cifs not working (works in Windows though)

On 29/07/10 10:29 AM, Camaleón wrote:

mount -t cifs //192.168.0.8/share -o username=hs /mnt/share


No luck. I get "mount error(13): Permission denied".

Nothing in syslog of the server.

In the samba logs, the only info I have is regarding the smbclient
command that worked last night, and this info appears to be verbose as
if the log level that I set earlier is indeed having an affect.




--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: i2s4bl$fer$1@dough.gmane.org">http://lists.debian.org/i2s4bl$fer$1@dough.gmane.org
 
Old 07-29-2010, 03:09 PM
Florian Kulzer
 
Default samba: mounting as cifs not working (works in Windows though)

On Thu, Jul 29, 2010 at 10:48:21 -0400, H.S. wrote:
> On 29/07/10 10:29 AM, Camaleón wrote:
> >mount -t cifs //192.168.0.8/share -o username=hs /mnt/share
>
> No luck. I get "mount error(13): Permission denied".
>
> Nothing in syslog of the server.
>
> In the samba logs, the only info I have is regarding the smbclient
> command that worked last night, and this info appears to be verbose
> as if the log level that I set earlier is indeed having an affect.

This is grasping at straws, but you can try:

mount -t cifs //192.168.0.8/user$/share -o username=hs /mnt/share

("user$" is a literal string here and does not indicate variable
substitution or similar.)

--
Regards, |
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100729150932.GA6602@bavaria.univ-lyon1.fr">http://lists.debian.org/20100729150932.GA6602@bavaria.univ-lyon1.fr
 
Old 07-29-2010, 03:13 PM
Camaleón
 
Default samba: mounting as cifs not working (works in Windows though)

On Thu, 29 Jul 2010 10:48:21 -0400, H.S. wrote:

> On 29/07/10 10:29 AM, Camaleón wrote:
>> mount -t cifs //192.168.0.8/share -o username=hs /mnt/share
>
> No luck. I get "mount error(13): Permission denied".
>
> Nothing in syslog of the server.

Nothing in "dmesg"? :-?

"Permission denied" sounds a bit cryptic. I assume you are mounting the
share being "root".

Does accessing via nautilus/konqueror ("smb://192.168.0.8/share/") work?

> In the samba logs, the only info I have is regarding the smbclient
> command that worked last night, and this info appears to be verbose as
> if the log level that I set earlier is indeed having an affect.

Oh, yes, remember to restore the log level to the default setting. Log
level "4" is "very" verbose, just for debugging.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.29.15.13.28@gmail.com">http://lists.debian.org/pan.2010.07.29.15.13.28@gmail.com
 
Old 07-29-2010, 04:37 PM
"H.S."
 
Default samba: mounting as cifs not working (works in Windows though)

On 29/07/10 11:13 AM, Camaleón wrote:

On Thu, 29 Jul 2010 10:48:21 -0400, H.S. wrote:

Nothing in "dmesg"? :-?


nope.



"Permission denied" sounds a bit cryptic. I assume you are mounting the
share being "root".

Does accessing via nautilus/konqueror ("smb://192.168.0.8/share/") work?



Ha! Yes, it works with dolphin file browser (I am using KDE). I can
browse the network, then browse samba shares and then when I click on
the samba server, I can click on the shares, I am then prompted for a
username and password, which are given and then I can browse the shared
folders. This all works.


Perhaps I should just ditch mounting the share using cifs. :-?

I am not much familiar with samba clients. So I have this question in my
mind now, what is the status of cifs at this time in Linux? Is it a
popular option? I used to use smbmount in the past, but I gather that it
is provided by smbfs and is deprecated or to be replaced by cifs?






--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: i2sao7$93j$1@dough.gmane.org">http://lists.debian.org/i2sao7$93j$1@dough.gmane.org
 
Old 07-29-2010, 04:38 PM
"H.S."
 
Default samba: mounting as cifs not working (works in Windows though)

On 29/07/10 11:09 AM, Florian Kulzer wrote:


This is grasping at straws, but you can try:

mount -t cifs //192.168.0.8/user$/share -o username=hs /mnt/share

("user$" is a literal string here and does not indicate variable
substitution or similar.)



No luck, same problem

But please check my other recent post, browsing the shares with dolphin
in KDE works.



--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: i2saql$93j$2@dough.gmane.org">http://lists.debian.org/i2saql$93j$2@dough.gmane.org
 
Old 07-29-2010, 05:03 PM
Camaleón
 
Default samba: mounting as cifs not working (works in Windows though)

On Thu, 29 Jul 2010 12:37:26 -0400, H.S. wrote:

> On 29/07/10 11:13 AM, Camaleón wrote:

(...)

>> Does accessing via nautilus/konqueror ("smb://192.168.0.8/share/")
>> work?
>>
>>
> Ha! Yes, it works with dolphin file browser (I am using KDE). I can
> browse the network, then browse samba shares and then when I click on
> the samba server, I can click on the shares, I am then prompted for a
> username and password, which are given and then I can browse the shared
> folders. This all works.

Good. KDE/GNOE use their own samba client framework to handle samba
shares, different than "mount -t cifs" does.

> Perhaps I should just ditch mounting the share using cifs. :-?

No, mounting a samba share "must" work, but is a bit picky :-).

I do not use it at all, but a mounted samba share offers more
possibilities than just accessing the resource using "smb://" protocol.

(I.e., some programs cannot open/save documents from/to a shared resource
using "smb://", they need a "local" path to work -meaning "/mnt" and
such).

> I am not much familiar with samba clients. So I have this question in my
> mind now, what is the status of cifs at this time in Linux? Is it a
> popular option? I used to use smbmount in the past, but I gather that it
> is provided by smbfs and is deprecated or to be replaced by cifs?

It's a very popular option... but people using two linux boxes tend to
prefer using "sftp://" (or "fish://" in KDE) for document sharing/
browsing instead samba (it's lighther, safer and easier) :-)

Anyway, "mount -t cifs" has to work, there must be something we are
missing here...

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.29.17.03.03@gmail.com">http://lists.debian.org/pan.2010.07.29.17.03.03@gmail.com
 
Old 07-29-2010, 06:09 PM
Tom H
 
Default samba: mounting as cifs not working (works in Windows though)

On Thu, Jul 29, 2010 at 12:28 AM, H.S. <hs.samix@gmail.com> wrote:
> On 28/07/10 11:46 PM, Tom H wrote:
>>
>> Please try again
>> smbclient -L //<server_ip_address> * -U<user>
>> for both users
>
> Aha! Works for both users.
>
> Here is the output for my username on sambaserver machine named "red":
> $ smbclient -L //192.168.0.8 *-U hs
> Enter hs's password:
> Domain=[SMBWG] OS=[Unix] Server=[Samba 3.4.8]
>
> * * * *Sharename * * * Type * * *Comment
> * * * *--------- * * * ---- * * *-------
> * * * *print$ * * * * *Disk * * *Printer Drivers
> * * * *Pictures * * * *Disk * * *Pictures Repository
> * * * *IPC$ * * * * * *IPC * * * IPC Service (red server)
> * * * *hs * * * * * * *Disk * * *Home Directories
> Domain=[SMBWG] OS=[Unix] Server=[Samba 3.4.8]
>
> * * * *Server * * * * * * * Comment
> * * * *--------- * * * * * *-------
> * * * *RED * * * * * * * * red server
>
> * * * *Workgroup * * * * * Master
> * * * *--------- * * * * * *-------
> * * * *SMBWG * * * * * * * red

Good. So the hs user is "samba-enabled" and can get a list of the shares on red.

Going back to your initial email, you had "mount error(13): Permission
denied", so you now have to check whether the share that you are
trying to access as hs has the correct mode both in smb.conf and at
the filesystem level.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=9=WXsnYuFwYk1c+NYvMGGJnR5oN-RTVM9ssXo@mail.gmail.com">http://lists.debian.org/AANLkTi=9=WXsnYuFwYk1c+NYvMGGJnR5oN-RTVM9ssXo@mail.gmail.com
 
Old 07-29-2010, 06:22 PM
Mr Smiley
 
Default samba: mounting as cifs not working (works in Windows though)

Try

echo 0 > /proc/fs/cifs/OplockEnabled

then try and smbmount again.


Mr Smiley


A man with a thermometer knows the temperature. A man with two thermometers is never sure.






--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 489676.75517.qm@web56604.mail.re3.yahoo.com">http://lists.debian.org/489676.75517.qm@web56604.mail.re3.yahoo.com
 
Old 07-29-2010, 06:23 PM
Stephan Seitz
 
Default samba: mounting as cifs not working (works in Windows though)

On Wed, Jul 28, 2010 at 11:11:31AM -0400, H.S. wrote:

~$ sudo mount -v -t cifs -o user=<username> //sambaserver/Share >~/mnt/Share
Password: .... <username's password here> ....
mount.cifs kernel mount options: ip=192.168.0.8,unc=//sambaserver/Share,,ver=1,user=<username>,pass=********
mount error(13): Permission denied


Stupid question, but from what I remember using mount.smbfs and
mount.cifs (when it could be run by a normal user because of s-bit), the
target directory must belong to the user doing the mount call.


I don’t know, what directory owner is required if you do the command via
sudo, but what permissions has ~/mnt/Share?


Shade and sweet water!

Stephan

--
| Stephan Seitz E-Mail: stse@fsing.rootsland.net |
| PGP Public Keys: http://fsing.rootsland.net/~stse/pgp.html |
 

Thread Tools




All times are GMT. The time now is 04:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org