SOLVED: Locally mounted Shares not showing any files

br0wnserver
Posts: 35
Joined: Sat Aug 09, 2014 9:28 am

Re: Locally mounted Shares not showing any files

Postby br0wnserver » Sun Aug 10, 2014 9:54 am

Still no avial....

Code: Select all

[root@localhost rbrown]# service mount_shares_locally stop Stopping mount_shares_locally (via systemctl): [ OK ] [root@localhost rbrown]# chown rbrown:users .smb_credentials [root@localhost rbrown]# rm -rf /mnt/samba/* [root@localhost rbrown]# ls -la .smb_credentials -rw-r--r-- 1 rbrown users 51 Aug 10 12:49 .smb_credentials [root@localhost rbrown]# service mount_shares_locally start Starting mount_shares_locally (via systemctl): Password for root@//127.0.0.1/Books:
This is a nightmare lol.

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

Re: Locally mounted Shares not showing any files

Postby bigfoot65 » Sun Aug 10, 2014 9:56 am

Can you verify that all shares are owned ''by rbrown:users''?

Might need to remove the mount_shares_locally stuff and start over with the wiki guidance. I have had to do that in the past with some things.

Weird part is second time it worked. LOL
ßîgƒσστ65
Applications Manager

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

br0wnserver
Posts: 35
Joined: Sat Aug 09, 2014 9:28 am

Re: Locally mounted Shares not showing any files

Postby br0wnserver » Sun Aug 10, 2014 9:58 am

Code: Select all

[root@localhost rbrown]# cd /var/hda/files [root@localhost files]# ls -la total 64 drwxr-xr-x. 13 root root 4096 Aug 9 20:14 . drwxr-xr-x. 13 root root 4096 Aug 9 10:54 .. drwxr-xr-x 4 rbrown users 4096 Aug 9 18:48 books drwxr-xr-x 2 rbrown users 4096 Aug 9 10:58 docs drwxr-xr-x 296 rbrown users 16384 Aug 9 22:47 movies drwxr-xr-x 3 rbrown users 4096 Aug 9 18:55 music drwxr-xr-x 3 apache users 4096 Aug 9 11:08 owncloud drwxr-xr-x 4 rbrown users 4096 Aug 9 23:01 pictures drwxr-xr-x 2 rbrown users 4096 Aug 9 10:58 public drwxr-xr-x 7 rbrown users 4096 Aug 9 21:31 rbrown drwxr-xr-x 4 rbrown users 4096 Aug 9 19:11 software drwxr-xr-x 9 rbrown users 4096 Aug 9 18:54 tv drwxr-xr-x 2 rbrown users 4096 Aug 9 13:06 videos
I will try redoing the whole mount_shares_locally again real quick

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

Re: Locally mounted Shares not showing any files

Postby bigfoot65 » Sun Aug 10, 2014 10:03 am

Your share file permissions are incorrect. It should be:

Code: Select all

chown -R 775 /var/hda/files/sharename
Replace sharename with the actual share name :)

UPDATE: They should reflect drwxrwxr-x
ßîgƒσστ65
Applications Manager

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

br0wnserver
Posts: 35
Joined: Sat Aug 09, 2014 9:28 am

Re: Locally mounted Shares not showing any files

Postby br0wnserver » Sun Aug 10, 2014 10:12 am

Ok, I ran the command, they all have the correct permissions now, but still asking for root login:

Code: Select all

[root@localhost files]# chmod -R 775 /var/hda/files/* [root@localhost files]# ls -la total 64 drwxr-xr-x. 13 rbrown users 4096 Aug 9 20:14 . drwxr-xr-x. 13 root root 4096 Aug 9 10:54 .. drwxrwxr-x 4 rbrown users 4096 Aug 9 18:48 books drwxrwxr-x 2 rbrown users 4096 Aug 9 10:58 docs drwxrwxr-x 296 rbrown users 16384 Aug 9 22:47 movies drwxrwxr-x 3 rbrown users 4096 Aug 9 18:55 music drwxrwxr-x 3 rbrown users 4096 Aug 9 11:08 owncloud drwxrwxr-x 4 rbrown users 4096 Aug 9 23:01 pictures drwxrwxr-x 2 rbrown users 4096 Aug 9 10:58 public drwxrwxr-x 7 rbrown users 4096 Aug 9 21:31 rbrown drwxrwxr-x 4 rbrown users 4096 Aug 9 19:11 software drwxrwxr-x 9 rbrown users 4096 Aug 9 18:54 tv drwxrwxr-x 2 rbrown users 4096 Aug 9 13:06 videos [root@localhost files]# service mount_shares_locally start Starting mount_shares_locally (via systemctl): Password for root@//127.0.0.1/Books:
Also, you have it is chown, which would change the owner not the permission. chmod is probably what you meant.

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

Re: Locally mounted Shares not showing any files

Postby bigfoot65 » Sun Aug 10, 2014 10:16 am

/var/hda/files should be owned by root.
drwxr-xr-x 20 root root 4096 Jul 29 02:02 .
drwxr-xr-x. 13 root root 4096 Nov 8 2013 ..
So you can do this to correct that:

Code: Select all

chown root:root /var/hda/files
Notice I left off -R option. That was intentional as we only want to affect the folder.

Not sure how yours got changed.

UPDATE: Ensure all the files in the shares are owned by your user as well.

Code: Select all

ll /var/hda/files/sharename
To make it easy, you could just do this:

Code: Select all

chown -R rbrown:users /var/hda/files/sharename
ßîgƒσστ65
Applications Manager

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

br0wnserver
Posts: 35
Joined: Sat Aug 09, 2014 9:28 am

Re: Locally mounted Shares not showing any files

Postby br0wnserver » Sun Aug 10, 2014 10:20 am

Ok, I ran that command as

Code: Select all

chown -R rbrown:users /var/hda/files
instead of

Code: Select all

/var/hda/files/*
Anyways, stopped service, changed that ownership, deleted /mnt/samba/*, ran the

Code: Select all

systemctl --system daemon-reload
and restarted the service, still asking for the root password. Is it an issue that my DHCP is turned off, so the domain wouldn't be working right? Can I put my ip into the domain?
Last edited by br0wnserver on Sun Aug 10, 2014 10:22 am, edited 1 time in total.

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

Re: Locally mounted Shares not showing any files

Postby bigfoot65 » Sun Aug 10, 2014 10:22 am

Please post an updated list of /var/hda/files. Also, when you chown the shares, you must specify -R option for recursive or the files do not change.
ßîgƒσστ65
Applications Manager

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

br0wnserver
Posts: 35
Joined: Sat Aug 09, 2014 9:28 am

Re: Locally mounted Shares not showing any files

Postby br0wnserver » Sun Aug 10, 2014 10:23 am

Code: Select all

[root@localhost files]# ls -la total 64 drwxr-xr-x. 13 root root 4096 Aug 9 20:14 . drwxr-xr-x. 13 root root 4096 Aug 9 10:54 .. drwxrwxr-x 4 rbrown users 4096 Aug 9 18:48 books drwxrwxr-x 2 rbrown users 4096 Aug 9 10:58 docs drwxrwxr-x 296 rbrown users 16384 Aug 9 22:47 movies drwxrwxr-x 3 rbrown users 4096 Aug 9 18:55 music drwxrwxr-x 3 rbrown users 4096 Aug 9 11:08 owncloud drwxrwxr-x 4 rbrown users 4096 Aug 9 23:01 pictures drwxrwxr-x 2 rbrown users 4096 Aug 9 10:58 public drwxrwxr-x 7 rbrown users 4096 Aug 9 21:31 rbrown drwxrwxr-x 4 rbrown users 4096 Aug 9 19:11 software drwxrwxr-x 9 rbrown users 4096 Aug 9 18:54 tv drwxrwxr-x 2 rbrown users 4096 Aug 9 13:06 videos

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

Re: Locally mounted Shares not showing any files

Postby bigfoot65 » Sun Aug 10, 2014 10:24 am

Looks right. Did you spot check the share files to ensure they have the same permissions? Does the mount_shares_locally work now?
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 11 guests