[plug] Ubuntu question - permission denied.
Leon Wright
techman83 at gmail.com
Tue Jun 4 06:22:08 UTC 2013
Dmitry,
Ahh, makes sense. Excellent work. To automate it so you don't have to enter
the command every reboot I'd recommend to script it on login (requires root
pass everytime or modification to sudoers), but better yet use AutoFS.
Before converting all my stuff to NFS I used it to map my shares
automatically.
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 7:49 PM, Нефедов Дмитрий <corzina at yandex.ru> wrote:
> Leon, Nick many thanks for answering.
>
> I've soled it!
> final command is
>
> *sudo mount //10.1.1.108/Seagate_Expansion_Drive /mnt/wdtvlive -o
> username=dmitry,password=1,uid=dmitry,gid=dmitry,iocharset=utf8*
>
> now
> *ls -l /mnt/wdtvlive
> *
> return
> *drwxr-xr-x 1 dmitry dmitry 0 Apr 21 09:40 !Video*
> *drwxr-xr-x 1 dmitry dmitry 0 Dec 26 22:53 !Music*
>
> and transmission finally download torrents to it.
>
> Leon you were right about automounting - I can browse network, but
> unfortunatelly transmission can't - thats why I need to mount it. Thanks
> for help - based on your answer I've done it.
> Nick thanks for show where to look about files and permissions.
>
> Regards,
> Dmitry.
>
> 03.06.2013, 11:08, "Leon Wright" <techman83 at gmail.com>:
>
> 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
>
> ,
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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/20130604/33b51d73/attachment.html>
More information about the plug
mailing list