SOLVED: Can't acces shares from anywhere, Windows 10 and OS X

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 5:08 pm

yes I did.


[root@localhost raid]# apaste ls -al /mnt/raid Usage: apaste [OPTION]... [FILE]...
send text file(s), stdin, or clipboard to the https://paste.fedoraproject.org/ pastebin and return the URL.

Examples:
apaste file1.txt file2.txt
dmesg | apaste
(prog1; prog2; prog3) | fpaste
apaste --sysinfo -d "my laptop" --confirm
apaste -n codemonkey -d "problem with foo" -l python foo.py

apaste: error: no such option: -a


I know i'm doing something wrong.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby bigfoot65 » Fri Sep 16, 2016 5:31 pm

Try putting the | (pipe) between apaste and ls -al
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 5:36 pm

apaste | ls -al /mnt/raid
total 36
drwxr-xr-x 6 root root 4096 Sep 16 20:33 .
drwxr-xr-x. 3 root root 4096 Sep 14 19:25 ..
drwxrwsr-x 2 root users 4096 Sep 13 22:12 amahi-time-machine
drwx------ 2 root root 16384 Sep 14 19:24 lost+found
drwxrwxrwx 2 root root 4096 Sep 16 20:21 movies
drwxrwxr-x 2 root root 4096 Sep 16 20:33 music

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby bigfoot65 » Fri Sep 16, 2016 5:55 pm

Permissions are likely your issue.

Directories and files have to be owned by the 1st admin user:users, not root.

To change it do:

Code: Select all

sudo chown -R 1st admin user:users /mnt/raid/
Replace 1st admin user with the user you created when installing Fedora.

I have never understood why home users use RAID. Greyhole does a similar job and provides file duplication without the complication of RAID. If a drive goes bad with Greyhole and you use Max Copies, just replace the drive and run a fcsk.

Just my opinion, but RAID has more pitfalls when a drive fails that Greyhole. I use Greyhole with my HDA and have 3 drives. Never lost a file yet! Likely hood of all 3 drives failing at once would be rare.

Plus if you accidentally delete a file with Greyhole, it's easy to recover. Not so much with RAID. Greyhole does not require all the drives used to be the same size which if I recall is a must for RAID.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 6:18 pm

You are probably right, and you can blame that to lack of knowledge on my part. Raid served me well so far, until this install.

on the other hand, i did :

sudo chown -R myusername user:users /mnt/raid/

but i get

chown: cannot access ‘user:users’: No such file or directory

i know more more about mdadm and fstab than chown.... :/

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 6:25 pm

Doing

sudo chown -R myusername /mnt/raid/

returned no error but didn't change my situation.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby bigfoot65 » Fri Sep 16, 2016 6:29 pm

Did it change the ownership?

Provide the result of the following:

Code: Select all

echo -e "SELECT name, path, CASE WHEN rdonly=1 THEN 'Y' ELSE 'N' END as 'Read Only', CASE WHEN visible=1 THEN 'Y' ELSE 'N' END as 'Visible', CASE WHEN everyone=1 THEN 'Y' ELSE 'N' END as 'Everyone', tags, extras, CASE WHEN disk_pool_copies=999 THEN 'Max' ELSE disk_pool_copies END as 'Disk Pool Copies', CASE WHEN guest_access=1 THEN 'Y' ELSE 'N' END as 'Guest Access', CASE WHEN guest_writeable=1 THEN 'Y' ELSE 'N' END as 'Guest Writeable' FROM shares;" | mysql -t -uroot -phda hda_production
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 6:31 pm

+--------+------------------+-----------+---------+----------+------+--------+------------------+--------------+-----------------+
| name | path | Read Only | Visible | Everyone | tags | extras | Disk Pool Copies | Guest Access | Guest Writeable |
+--------+------------------+-----------+---------+----------+------+--------+------------------+--------------+-----------------+
| Movies | /mnt/raid/movies | N | Y | Y | | NULL | 0 | N | N |
| Music | /mnt/raid/music | N | Y | Y | | NULL | 0 | N | N |
+--------+------------------+-----------+---------+----------+------+--------+------------------+--------------+-----------------+

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby bigfoot65 » Fri Sep 16, 2016 6:35 pm

Now output of this command:

Code: Select all

apaste | ls -al /mnt/raid
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

pitbull
Posts: 41
Joined: Mon Nov 28, 2011 2:14 pm

Re: Can't acces shares from anywhere, Windows 10 and OS X

Postby pitbull » Fri Sep 16, 2016 6:37 pm

apaste | ls -al /mnt/raid
total 36
drwxr-xr-x 6 Hugues root 4096 Sep 16 20:33 .
drwxr-xr-x. 3 root root 4096 Sep 14 19:25 ..
drwxrwsr-x 2 Hugues users 4096 Sep 13 22:12 amahi-time-machine
drwx------ 2 Hugues root 16384 Sep 14 19:24 lost+found
drwxrwxrwx 2 Hugues root 4096 Sep 16 20:21 movies
drwxrwxr-x 2 Hugues root 4096 Sep 16 20:33 music

Who is online

Users browsing this forum: No registered users and 26 guests