LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-27-2015, 12:53 AM   #1
a-relieved-pup-here
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 1
Question No CLI file manipulation to gvfs mount of phone via bluetooth. Why no permission?


Can anyone enlighten me as to why simple cli file manipulation command 'cp' won't work on .gvfs mount bluetooth phone? A simple clarification would be greatly appreciated. I found that gvfs-copy worked, after I asked bluetooth to browse the device, (phone). Thank you. Following, some cli stuff I tried.

user@cpu:~$ alias f
alias f='sed "s/$ACCOUNT_NAME/\$USER/g"
user@cpu:~$ cat ~/.bashrc | grep ACCOUNT_NAME
ACCOUNT_NAME=`cat /etc/passwd | grep 1000 | cut -d: -f1` # SET $ACCOUNT_NAME
user@cpu:~$ ls -al ~/.gvfs/LG440G/Audio/ | head -n4 | f
total 20439
drwx------ 1 $USER $USER 0 1969-12-31 18:00 ./
drwx------ 1 $USER $USER 0 1969-12-31 18:00 ../
-rwx------ 1 $USER $USER 4184488 1969-12-31 18:00 04 Angel.mp3*
user@cpu:~$ cp -vdp Happy_Days_Ringtone.mp3 .gvfs/LG440G/Audio/
`Happy_Days_Ringtone.mp3' -> `.gvfs/LG440G/Audio/Happy_Days_Ringtone.mp3'
cp: cannot create regular file `.gvfs/LG440G/Audio/Happy_Days_Ringtone.mp3': Operation not supported
user@cpu:~$ sudo su -c 'cp -vdp Happy_Days_Ringtone.mp3 .gvfs/LG440G/Audio/'
cp: accessing `.gvfs/LG440G/Audio/': Permission denied
user@cpu:~$ ps aux | grep -v grep | grep gvfs | f
$USER 7982 0.0 0.0 15072 2900 ? S 12:42 0:00 /usr/lib/gvfs/gvfsd-obexftp --spawner :1.6 /org/gtk/gvfs/exec_spaw/10
$USER 8931 0.0 0.0 15032 1928 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-computer --spawner :1.6 /org/gtk/gvfs/exec_spaw/8
$USER 10409 0.0 0.0 6796 1016 ? S Jun22 0:12 /usr/lib/gvfs/gvfsd
$USER 10414 0.0 0.0 30428 1844 ? Ssl Jun22 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/$USER/.gvfs
$USER 10422 0.0 0.0 33524 2800 ? S Jun22 0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
$USER 10435 0.0 0.0 16976 676 ? Sl Jun22 0:09 /usr/lib/gvfs/gvfs-afc-volume-monitor
$USER 10438 0.0 0.0 7276 900 ? S Jun22 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
$USER 10441 0.0 0.0 6836 1796 ? S Jun22 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
$USER 10536 0.0 0.0 6400 12 ? S Jun22 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
$USER 14467 0.0 0.0 6560 1036 ? S Jun23 0:00 /usr/lib/gvfs/gvfsd-metadata
$USER 31020 0.0 0.0 15676 12 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.6 /org/gtk/gvfs/exec_spaw/4
$USER 31025 0.0 0.0 6568 484 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.6 /org/gtk/gvfs/exec_spaw/6
user@cpu:~$ gvfs-copy --progress --preserve temptest.wav .gvfs/LG440G/Audio/
progress 0/117234 (0 bytes/s)
progress 15944/117234 (15.6 KB/s)
progress 23916/117234 (23.4 KB/s)
progress 31888/117234 (31.1 KB/s)
progress 39860/117234 (38.9 KB/s)
progress 47832/117234 (46.7 KB/s)
progress 55804/117234 (54.5 KB/s)
progress 63776/117234 (62.3 KB/s)
progress 71748/117234 (70.1 KB/s)
progress 79720/117234 (77.9 KB/s)
progress 87692/117234 (85.6 KB/s)
progress 95664/117234 (93.4 KB/s)
progress 103636/117234 (101.2 KB/s)
progress 111608/117234 (109.0 KB/s)
progress 117234/117234 (114.5 KB/s)
progress 117234/117234 (114.5 KB/s)
progress 117234/117234 (114.5 KB/s)

(gvfs-copy:18480): GLib-GIO-CRITICAL **: g_cancellable_release_fd: assertion `G_IS_CANCELLABLE (cancellable)' failed
user@cpu:~$

This last attempt via gvfs-copy, though outputing "'G_IS_CANCELLABLE (cancellable)' failed", worked. What's up with normal 'cp' command?
 
Old 06-28-2015, 06:27 PM   #2
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Quote:
sudo su -c 'cp ...
Why "su -c"? Have you tried:

Code:
sudo 'cp ...
 
Old 06-30-2015, 09:53 AM   #3
a-relieved-pup-here
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Original Poster
Rep: Reputation: 1
Same, ( cp: accessing `.gvfs/LG440G/Audio/': Permission denied )
Only gvfs-copy seems to work. Thanks for the reply DL.

Last edited by a-relieved-pup-here; 06-30-2015 at 03:56 PM. Reason: Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting file permissions gvfs-mount samba share? ask Linux - General 1 01-04-2012 09:51 AM
File transfer to mobile phone using Bluetooth beparas Linux - Networking 4 06-29-2011 11:11 PM
How to transfer file from phone using bluetooth to Slackware. reikyv Slackware 1 09-11-2009 11:01 AM
LG TU500 mobile phone mount filesystem bluetooth Person_1873 Linux - General 4 01-02-2008 03:39 AM
LXer: CLI Magic: Access your Bluetooth phone via the command line LXer Syndicated Linux News 0 02-26-2007 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration