[plug] Ubuntu question - permission denied.

Leon Wright techman83 at gmail.com
Mon Jun 3 07:07:44 UTC 2013


Dmitry,

I'm curious as to why you would need to use the command line to mount a
standard CIFS share. If you open the file manager, you can browse the
network as you would in windows. Double click the wdtvlive and open the
file share. It will pop up with a username/password prompt. Then drag/drop
and go have a cup of tea :)

You can still mount via the cli, but there is a learning curve involved
with that and probably extraneous to your requirements right now. That
said, you shouldn't  need most of line you pasted, however you will need to
set the uid (and gid, but not mandatory) for your local user (which is the
step you're missing):

No write perms:
sudo mount //kitten/media /mnt -o username=leon
drwxr-xr-x  0 root root    0 Jan 22  2010 music
drwxr-xr-x  0 root root    0 Jul 31  2010 other
drwxr-xr-x  0 root root    0 Aug  4  2008 Temp
drwxr-xr-x  0 root root    0 May 18 19:19 tmp
drwxr-xr-x  0 root root    0 Apr 23  2012 video

Write perms!:
sudo mount //kitten/media /mnt -o username=leon,uid=leon,gid=leon
drwxr-xr-x  0 leon leon    0 Jan 22  2010 music
drwxr-xr-x  0 leon leon    0 Jul 31  2010 other
drwxr-xr-x  0 leon leon    0 Aug  4  2008 Temp
drwxr-xr-x  0 leon leon    0 May 18 19:19 tmp
drwxr-xr-x  0 leon leon    0 Apr 23  2012 video

Otherwise you will, as you found have issues writing to the share as your
non root user. You can also get crafty with AutoFS:

http://rivald.blogspot.com.au/2012/02/cifs-automount-in-linux.html

Welcome to the world of Linux! Feel free to drop by a meeting and ask
questions.

Regards,

Leon


--
DRM 'manages access' in the same way that jail 'manages freedom.'

# cat /dev/mem | strings | grep -i cats
Damn, my RAM is full of cats... MEOW!!


On Mon, Jun 3, 2013 at 9:42 AM, corzina <corzina at ya.ru> wrote:

>  Hi!
> My name is Dmitry. I'm a first year student of Bachelor of CS in ECU. I
> have just a little experience in Linux, but I want to migrate to
> Ubuntu\Mint from Windows.
> To use Linux it's  necessary for me to have few possibilities  - almost
> all of them I've already solved, but not next one.
>
> It's necessary for me to have availability to download torrents directly
> to media-player.
> I have small WiFi LAN at home: Netgear, Desktop, Laptop, media-player etc.
> IP-Addresses are static.
> I use windows on my Desktop and want to migrate to Ubuntu.
> On windows i just go to network-> mediaplayer(wdtvlive) -> hdd and
> torrents download there.
> on Ubuntu 13.04 I have access to media player by network. I can
> download\upload files with no problem.
> Problem exist when i try to download torrents directly to it.Transmission doesn't give access to network, so have to mount it.
> I've created folder on /mnt/wdtvlive. then give permissions to me and
> others to access and create files.
> Then I mount it by command
>
> *mount //10.1.1.108/Seagate_Expansion_Drive /mnt/wdtvlive -o
> username=dmitry,password=1,dir_mode=0777,file_mode=0777,iocharset=utf8**
> *
> but it return error said that *can't mount read-only device* or *error(13):
> permission denied*.
> command
>
> *echo 0x30030 > /proc/fs/cifs/SecurityFlags** *
>
> helps. after it i can mount media player to this folder. Media player
> don't really need psw and login - anyone in WORKGROUP can access it.
>
> Finally i try to download any torrent to /mnt/wdtdlive/
>
> transmission starts to download and then return an error: permission
> denied.
>
> I change permissions and owner to folders /mnt and /mnt/wdtvlive, but
> probably reboot is needed. But after reboot permissions changed by
> themselves.
> It continued for /mnt , but not for /mnt/wdtvlive and all folders that
> inside
>
> ls -l /
> drwxrwxrwx 3 dmitry dmitry 4096 Jun 1 09:52 mnt
>
> ls -l /mnt
> drwxr-xr-x 1 root root 0 May 31 12:33 wdtvlive
>
> Have no idea how to solve it. Please help.
>
> Regards,
> Dmitry.
>
>
>
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20130603/edb611e3/attachment.html>


More information about the plug mailing list