[SOLVED] Issue to share a folder on a cloudshell with a wind

Moderators: mdrjr, odroid

[SOLVED] Issue to share a folder on a cloudshell with a wind

Unread postby castillan » Sat Feb 04, 2017 1:46 am

I use an XU4+cloudshell and try to share a folder located on the hard disk with a windows unit. I see the folder on windows but cannot open it. There is no difficulty to open a shred folder located on the emmc module of the xU4. Why this difference ?
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby odroid » Sat Feb 04, 2017 1:04 pm

Compare the owner and permission of the folder in the HDD from the eMMC.
User avatar
odroid
Site Admin
 
Posts: 24362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Tue Feb 14, 2017 7:53 pm

Owner, permissions, sharing are the same for the 2 folders, emmc and HDD. From a windows computer, I see the 2 folders, but can access only the emmc. The HDD is forbidden.
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby rooted » Wed Feb 15, 2017 1:42 pm

Mount with 'allow_other'
User avatar
rooted
 
Posts: 3653
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Wed Feb 15, 2017 6:16 pm

I add allow_other to the mount options : nosuid,nodev,nofail,x-gvfs-show,allow_other
but got this error :
Error mounting system-managed device /dev/sda1: Command-line `mount "/mnt/usb-ST1000LM_035-1RK172_0000000000000033-0:0-part1"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.
(udisks-error-quark, 0)
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Tue Jun 27, 2017 1:22 am

I am still unable to share the 1T cloudshell on a network. With the same permissions, a folder on the card is shared, not on the dd. Is there a solution to solve that ?
Thanks for your help
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby odroid » Tue Jun 27, 2017 9:38 am

How is the owner?
Can you create a file on the mount point with "touch aaaa"?
User avatar
odroid
Site Admin
 
Posts: 24362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Tue Jun 27, 2017 4:38 pm

Owner is the current user

testparam gives that:

odroid@odroid-XU4:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[XU4-em]"
Processing section "[XU4-1T]"
Processing section "[Share2]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = LBP1
netbios name = ODROID_XU4
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
map to guest = Bad Password
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb


[XU4-em]
comment = public Share
path = /home/odroid/Public-e
read only = No
create mask = 0777
directory mask = 0777
directory mode = 0777
guest ok = Yes


[XU4-1T]
comment = public 1T Share
path = /media/odroid/6e5648f8-3a4b-47c0-bada-5dd4ecf0c15a/share-1T
read only = No
create mask = 0777
directory mask = 0777
directory mode = 0777
guest ok = Yes


[Share2]
path = /media/odroid/6e5648f8-3a4b-47c0-bada-5dd4ecf0c15a/Share2
read only = No
guest ok = Yes
------------------
/home/odroid/Public-e located on the sd-card is shared on the network and its files can be opened - The Other folders on the 1T HD can be seen but cannot be opened from the network ( files can be created and modified from the XU4).
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby odroid » Tue Jun 27, 2017 6:10 pm

Try this command and reboot.
sudo chown odroid:odroid /media/odroid/ -R
User avatar
odroid
Site Admin
 
Posts: 24362
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Tue Jun 27, 2017 6:42 pm

That doesn't solve the issue
ls -l doesn't list the shared folders on the hard drive...

odroid@odroid-XU4:~$ ls -l
total 44
-rw------- 1 odroid odroid 3327 Jan 6 14:26 dead.letter
drwxr-xr-x 2 odroid odroid 4096 Jun 26 18:01 Desktop
drwxr-xr-x 2 odroid odroid 4096 Jul 4 2016 Documents
drwxr-xr-x 2 odroid odroid 4096 Mar 1 16:59 Downloads
drwxr-xr-x 2 odroid odroid 4096 Jul 4 2016 Music
drwxr-xr-x 2 odroid odroid 4096 Jul 4 2016 Pictures
drwxrwxrwx 2 odroid odroid 4096 Jun 26 19:41 Public-e
drwxrwxrwx 11 odroid odroid 4096 Mar 1 17:56 quisk
-rw-rw-r-- 1 odroid odroid 107 Mar 2 08:14 quisk_favorites.txt
-rw-r--r-- 1 root root 0 Feb 11 2016 resize.log
drwxr-xr-x 2 odroid odroid 4096 Jul 4 2016 Templates
drwxr-xr-x 2 odroid odroid 4096 Jul 4 2016 Videos
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2

Re: Issue to share a folder on a cloudshell with a windows c

Unread postby castillan » Tue Jun 27, 2017 6:51 pm

SOLVED : But going back to set the permissions ok in odroid folder for others has solved the issue - that was not working before to execute your last post. Thanks a lot for your help.
castillan
 
Posts: 111
Joined: Fri Apr 19, 2013 10:25 pm
languages_spoken: english & french
ODROIDs: ODROID-X & ODROID-U2 & ODROID C1 & ODROID U3 & ODROID XU4 & C2 0.2


Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests