Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   help with samba client? (http://www.linux-archive.org/debian-user/166070-help-samba-client.html)

Philip 09-25-2008 10:52 AM

help with samba client?
 
Hi

I used to be able to use smbmount to mount a samba share into a non-root
users directory, but a while back it stopped working.
The man page suggests mount -t smbfs but when I try it I get an "only
root can do that" error (I don't remember the exact wording).

What's the correct way for a non-root user to mount a samba share?
it must be possible because the smbk4 gui program can mount a samba
share without the root password, but I want a command line way that I
can add to login scripts.

In my case both client and server are etch.

thanks, Philip


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

Amit Uttamchandani 09-26-2008 01:47 AM

help with samba client?
 
On Thu, 25 Sep 2008 11:52:51 +0100
Philip <subs@christiantena.net> wrote:

> Hi
>
> I used to be able to use smbmount to mount a samba share into a non-root
> users directory, but a while back it stopped working.
> The man page suggests mount -t smbfs but when I try it I get an "only
> root can do that" error (I don't remember the exact wording).
>
> What's the correct way for a non-root user to mount a samba share?
> it must be possible because the smbk4 gui program can mount a samba
> share without the root password, but I want a command line way that I
> can add to login scripts.
>
> In my case both client and server are etch.
>
> thanks, Philip
>

I think if you add it to /etc/fstab with users option (check man
page) you should be able to mount it as a regular user.

Right now I am using fuse and smbnetfs. You will have to compile
smbnetfs from source but it is much better than smbmount as you can add
the user to the fuse group and you can simply mount the shares using
smbnetfs.

Good luck,
Amit


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

Hugo Vanwoerkom 09-26-2008 10:56 AM

help with samba client?
 
Philip wrote:

Hi

I used to be able to use smbmount to mount a samba share into a non-root
users directory, but a while back it stopped working.
The man page suggests mount -t smbfs but when I try it I get an "only
root can do that" error (I don't remember the exact wording).

What's the correct way for a non-root user to mount a samba share?
it must be possible because the smbk4 gui program can mount a samba
share without the root password, but I want a command line way that I
can add to login scripts.

In my case both client and server are etch.



Samba is a mystery to me, but I use it on Sid to run with VMware's
vmserver 1.0.6 + XP (no SP's).


I used to get read-only shares mounted until I changed:

read only = no

in /etc/samba/smb.conf line #231.

That made the user home directory writable and non-root.
Don't know if that helps.

Hugo


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



Fri Sep 26 14:30:01 2008
Return-path: <ubuntu-mobile-bounces@lists.ubuntu.com>
Envelope-to: tom@linux-archive.org
Delivery-date: Fri, 26 Sep 2008 13:42:27 +0300
Received: from chlorine.canonical.com ([91.189.94.204])
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <ubuntu-mobile-bounces@lists.ubuntu.com>)
id 1KjAmJ-0007J6-9i
for tom@linux-archive.org; Fri, 26 Sep 2008 13:42:27 +0300
Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com)
by chlorine.canonical.com with esmtp (Exim 4.60)
(envelope-from <ubuntu-mobile-bounces@lists.ubuntu.com>)
id 1KjAmD-00047y-U2; Fri, 26 Sep 2008 11:42:21 +0100
Received: from an-out-0708.google.com ([209.85.132.241])
by chlorine.canonical.com with esmtp (Exim 4.60)
(envelope-from <javier.galvez.guerrero@gmail.com>)
id 1KjAmB-00047t-Cn
for ubuntu-mobile@lists.ubuntu.com; Fri, 26 Sep 2008 11:42:19 +0100
Received: by an-out-0708.google.com with SMTP id d31so50343and.92
for <ubuntu-mobile@lists.ubuntu.com>;
Fri, 26 Sep 2008 03:42:18 -0700 (PDT)
Received: by 10.100.13.2 with SMTP id 2mr854453anm.46.1222425738545;
Fri, 26 Sep 2008 03:42:18 -0700 (PDT)
Received: by 10.100.189.5 with HTTP; Fri, 26 Sep 2008 03:42:18 -0700 (PDT)
Message-ID: <145d4e1a0809260342y606f3240gea7b639ec0e87bcf@mail .gmail.com>
Date: Fri, 26 Sep 2008 12:42:18 +0200
From: "=?ISO-8859-1?Q?Javier_G=E1lvez_Guerrero?="
<javier.galvez.guerrero@gmail.com>
To: "Ryan Gallagher" <ryan@iomain.com>
Subject: Re: Install not working properly- Error 15 upon reboot
In-Reply-To: <48DCBA0B.4080205@iomain.com>
MIME-Version: 1.0
References: <48DCBA0B.4080205@iomain.com>
Cc: ubuntu-mobile@lists.ubuntu.com
X-BeenThere: ubuntu-mobile@lists.ubuntu.com
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: Ubuntu Mobile and Embedded discussions
<ubuntu-mobile.lists.ubuntu.com>
List-Unsubscribe: <https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile>,
<mailto:ubuntu-mobile-request@lists.ubuntu.com?subject=unsubscribe>
List-Archive: <https://lists.ubuntu.com/archives/ubuntu-mobile>
List-Post: <mailto:ubuntu-mobile@lists.ubuntu.com>
List-Help: <mailto:ubuntu-mobile-request@lists.ubuntu.com?subject=help>
List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile>,
<mailto:ubuntu-mobile-request@lists.ubuntu.com?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1171456214375203122=="
Mime-version: 1.0
Sender: ubuntu-mobile-bounces@lists.ubuntu.com
Errors-To: ubuntu-mobile-bounces@lists.ubuntu.com

--===============1171456214375203122==
Content-Type: multipart/alternative;
boundary="----=_Part_18629_8862418.1222425738522"


------=_Part_18629_8862418.1222425738522
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The same problem here with Asus R2E. I was able to work around the Error 15
changing the menu.lst file this way:

#title Ubuntu intrepid (development branch), kernel Last successful
boot
#root (hd0,4)
#kernel /boot/last-good-boot/vmlinuz
root=UUID=d4385ca4-3ee5-4181-9739-3cbd744d4bf3 ro quiet splash
last-good-boot
#quiet

title Ubuntu Mobile
root (hd0,4)
kernel /boot/vmcoreinfo-2.6.27-4-generic
initrd /boot/initrd.img-2.6.27-4-generic
quiet

but when booting Error 13 appeared, according to
this<http://users.bigpond.net.au/hermanzone/p15.htm#13>,
it seems that the kernel file is corrupted. It could also be that I'm
missing something in my menu.lst reconfiguration.

Any idea?

Regards,
Javi




2008/9/26 Ryan Gallagher <ryan@iomain.com>


Hiya,

I am able to run it just fine in the live version. At first I tried to
install it into a 20GB partition I had created for this but that failed
with an error 15 on reboot. I liked it so much I decided to format the
whole hard drive and install it, unfortunately it still does not boot
and gets an error 15 upon reboot. I have tried about 15 times using
different settings in the partitions on install. I have also
reformatted in Ubuntu 8.04 and then tried again but no luck. Anyone
else having a problem with the install? Any ideas on what is going
wrong? It is a Q1 Ultra which has no trouble running MID and 8.04.

Thanks,
Ryan.

--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile



------=_Part_18629_8862418.1222425738522
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">The same problem here with Asus R2E. I was able to work around the Error 15 changing the menu.lst file this way:<br><br><span style="font-family: courier new,monospace;">#title&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Ubuntu intrepid (development branch), kernel Last successful boot</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#root&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (hd0,4)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#kernel&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /boot/last-good-boot/vmlinuz root=UUID=d4385ca4-3ee5-4181-9739-3cbd744d4bf3 ro quiet splash&nbsp; last-good-boot</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#quiet</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Ubuntu Mobile</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (hd0,4)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /boot/vmcoreinfo-2.6.27-4-generic</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /boot/initrd.img-2.6.27-4-generic</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">quiet</span><br><br>
but when booting Error 13 appeared, according to <a href="http://users.bigpond.net.au/hermanzone/p15.htm#13">this</a>, it seems that the kernel file is corrupted. It could also be that I'm missing something in my menu.lst reconfiguration. <br>
<br>Any idea?<br><br>Regards,<br>Javi<br><br><br><br><br>< div class="gmail_quote">2008/9/26 Ryan Gallagher <span dir="ltr">&lt;<a href="mailto:ryan@iomain.com">ryan@iomain.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hiya,<br>
<br>
I am able to run it just fine in the live version. &nbsp;At first I tried to<br>
install it into a 20GB partition I had created for this but that failed<br>
with an error 15 on reboot. &nbsp;I liked it so much I decided to format the<br>
whole hard drive and install it, unfortunately it still does not boot<br>
and gets an error 15 upon reboot. &nbsp;I have tried about 15 times using<br>
different settings in the partitions on install. &nbsp;I have also<br>
reformatted in Ubuntu 8.04 and then tried again but no luck. &nbsp;Anyone<br>
else having a problem with the install? &nbsp;Any ideas on what is going<br>
wrong? &nbsp;It is a Q1 Ultra which has no trouble running MID and 8.04.<br>
<br>
Thanks,<br>
Ryan.<br>
<font color="#888888"><br>
--<br>
Ubuntu-mobile mailing list<br>
<a href="mailto:Ubuntu-mobile@lists.ubuntu.com">Ubuntu-mobile@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile</a><br>
</font></blockquote></div><br></div>

------=_Part_18629_8862418.1222425738522--


--===============1171456214375203122==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

--===============1171456214375203122==--


All times are GMT. The time now is 11:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.