mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Can I ask a smbfs question here?
@ 2005-01-15  2:15 Nick
  2005-01-15  3:31 ` Yaroslav Rastrigin
  0 siblings, 1 reply; 3+ messages in thread
From: Nick @ 2005-01-15  2:15 UTC (permalink / raw)
  To: linux-kernel

Hello,

I am trying to use a W2K share from my laptop. This share is on Fat32 
(not sure if it matters). So far I am able either to configure it so it 
is mountable by non-root user or to configure it so it sees 
international (russian) characters in filenames on this share. I am on 
FC3 with the stock Samba (updated to samba-3.0.10-1.fc3). Here is what I 
did:

To make the share user mountable I changed the owner of the mountpoint 
to the regular user I am using, chmodded one of the binaries (sorry - do 
not remember which one - found its name in one of FAQs) and specified 
"users" option in the /etc/fstab for this share.  After all these I am 
able to mount this share as a regular user (owner of the mount point). 
Unfortunately, it cannot see russian characters in the file names.

To make russian characters visible, I added the following options to the 
/etc/fstab : codepage=cp866,iocharset=utf8. It works ONLY if I remove 
users (or user) option for the same share.

1) 
username=administrator,password=xxx,fmask=0666,codepage=cp866,iocharset=utf8 

This line allows me to see russian filenames but I cannot mount it as a 
regular user - only as root.

2) 
username=administrator,password=xxx,fmask=0666,codepage=cp866,iocharset=utf8,users 

I am getting the following message in /var/log/messages if I use the 
second line:
Jan  9 15:24:09 NS kernel: smbfs: Unrecognized mount option noexec
The share still mounts but the russian filenames are not visible 
(russian letters are replaced with question marks ???).

Any ideas if it is possible to fix this? I can "sudo mount" all the time 
but it does not sound right...

Thanks,
Nick



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can I ask a smbfs question here?
  2005-01-15  2:15 Can I ask a smbfs question here? Nick
@ 2005-01-15  3:31 ` Yaroslav Rastrigin
  2005-01-15 21:52   ` Nick
  0 siblings, 1 reply; 3+ messages in thread
From: Yaroslav Rastrigin @ 2005-01-15  3:31 UTC (permalink / raw)
  To: Nick; +Cc: linux-kernel

Hi !
On 15 January 2005 05:15, you wrote:
>

> To make the share user mountable I changed the owner of the mountpoint
> to the regular user I am using, chmodded one of the binaries (sorry - do
/usr/sbin/smbmnt ?
> not remember which one - found its name in one of FAQs) and specified
....
>username=administrator,password=xxx,fmask=0666,codepage=cp866,iocharset=utf8,users 
Are you sure it's "users" and not "user" ?
>
> Any ideas if it is possible to fix this? I can "sudo mount" all the time
> but it does not sound right...
And what's wrong with smbmount ?
smbmount //server/share /your/mountpoint -o 
username=<uname>,iocharset=utf8,codepage=cp866
Works like a charm as long as /usr/sbin/smbmnt is suid-root

-- 
Managing your Territory since the dawn of times ...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can I ask a smbfs question here?
  2005-01-15  3:31 ` Yaroslav Rastrigin
@ 2005-01-15 21:52   ` Nick
  0 siblings, 0 replies; 3+ messages in thread
From: Nick @ 2005-01-15 21:52 UTC (permalink / raw)
  To: linux-kernel

/usr/sbin/smbmnt ?

After I chmodded /usr/bin/smbmnt one, I got:
libsmb based programs must *NOT* be setuid root.
29612: Connection to nata failed
SMB connection failed

I do not have /usr/sbin/smbmnt

>>not remember which one - found its name in one of FAQs) and specified
>>    
>>
>....
>  
>
>>username=administrator,password=xxx,fmask=0666,codepage=cp866,iocharset=utf8,users 
>>    
>>
>Are you sure it's "users" and not "user" ?
>  
>
I actually tried both. The reaction is the same (may be synonims?).  As 
soon as I specify it, codepage= and iocharset= parameters are no longer 
recognized and an error message starts to appear in the 
/var/log/messages saying that "noexec" parameter is not recognized by 
smbfs (Jan  9 15:24:09 NS kernel: smbfs: Unrecognized mount option 
noexec). This is actually not a big issue as I could write a script with 
"sudo mount /my/mountpoint". And I probably can exclude this line from 
my fstab and specify the parameters in this script. This just does not 
look very user-friendly to me (ok for my single-user laptop). It appears 
that I cannot use fstab with smbfs volumes if I want international 
characters.

>>Any ideas if it is possible to fix this? I can "sudo mount" all the time
>>but it does not sound right...
>>    
>>
>And what's wrong with smbmount ?
>smbmount //server/share /your/mountpoint -o 
>username=<uname>,iocharset=utf8,codepage=cp866
>Works like a charm as long as /usr/sbin/smbmnt is suid-root
>
>  
>
Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-15 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-15  2:15 Can I ask a smbfs question here? Nick
2005-01-15  3:31 ` Yaroslav Rastrigin
2005-01-15 21:52   ` Nick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®