Storage and files question

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Storage and files question

Postby sahrempire » Sat Jan 07, 2012 11:44 pm

Hi all, I am trying out Amahi for the first time. I have everything installed and up and running, which was surprising, I was honestly expecting issues with the DHCP server, but nothing. :) Anyway, I hope you guys can provide some insight, it appears that Amahi (I keep wanting to type Hamachi) was designed for people building from the ground up. Me, I have several Hard drives that I want to store my data/back up my data on.

I would like to set up access as follows, As long as a user is authorized to access Amahi, they can access the full file trees on the 2 drives. (this is a single user network, with several pc's.) I do not want to reorginize the drives. Is there any way to do this? Also a quick question in reguards to this, The "users" that need to be given permission, they are Amahi users correct? not the users accounts on the PC's? I want to make sure I dont need to create a user for each account the pc, as long as they have the correct amahi credentials, they can access the box.

I think thats it for the moment, thanks for creating this solution, (trying to find a local copy of WHS was not working out. : )

EDIT: As somewhat expected, I wan able to mount the 2 drives and share them, I had an idea how to do it, but the wiki advised against setting up your own file path. IAC that is complete. My issue now is accessing the files from another PC. I can get to \\hda and see the shares, I can login to the HDA dashboard, but when I attempt to access the shares and I am prompted for my permissions, I cannot gain access. It says I do not have access and prevents me from attempting to login again until i logout, and log back into windows. First I would like to know why I cant get access, I even created a test user with a simple password, no luck. (also, I would like some confirmation, is there a length limit on the password? It seems as though I cannot create a password longer than maybe 12 characters?) Second, is there a way to reenter credentials without logging out? good security but...

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

Re: Storage and files question

Postby bigfoot65 » Sun Jan 08, 2012 8:23 am

Check out the shares troubleshooter.

http://wiki.amahi.org/index.php/Shares_troubleshooting

Once you authenticate in Windows, it will retain the access until you log out. That is something that is by design with Fedora/Samba I believe and not Amahi specific. I also think there is a password length limit, but unsure of the length.
ßîgƒσστ65
Applications Manager

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

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: Storage and files question

Postby sahrempire » Sun Jan 08, 2012 1:34 pm

Yeah, I had looked at that last night. One thing I am trying now is to get the drives mounted correctly.

I was using the instructions over at: http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

My problem is (at least) twofold. The first is there is data on the drives, so I cannot follow the instructions step by step.

Fedora recognizes the drives and lists them as sdc and sdb respectively. unfortunately, hda-diskmount only seems to pickup one of the drives, sdc. (and of course sda which is already mounted.)

The first drive mounts correctly but I still cannot access the drive through windows. Here shortly im going to fire up another linux box, see if I can access it.

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

Re: Storage and files question

Postby bigfoot65 » Sun Jan 08, 2012 1:46 pm

To access the drives through Windows, create a share in the dashboard. Make the path of the share /var/hda/files/drives/sdc. That will allow you to access it via \\hda with Windows client.

The other drive that did not get picked up with the script may be due to it already being included in /etc/fstab from when you installed Fedora. If so, you can unmount it and remove from /etc/fstab, the run the script.

Yes I understand you cannot do all the tasks listed in the wiki. Since you already have files, only necessary to mount it and add to /etc/fstab. The formatting part is meant for those adding new drives without files of course.
ßîgƒσστ65
Applications Manager

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

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: Storage and files question

Postby sahrempire » Sun Jan 08, 2012 2:08 pm

of course.

now, as mentioned in the walkthrough, the drive was remounted in /var/hda/files is that still correct, or do i need to move it back? Currently the dashboard has the file path set to /var/hda/files/1tb and I can see it from windows. In addition, I used smbclient to connect to the share from another linux machine, this is the output:

Code: Select all

Domain=[CHOSEN DOMAIN] OS=[Unix] Server=[Samba 3.5.5-68.fc14] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (xxxxxxxx.net) 1tb Disk 1tb print$ Disk Domain=[CHOSEN DOMAIN] OS=[Unix] Server=[Samba 3.5.5-68.fc14] Server Comment --------- ------- HDA xxxxxxxxxx.net Workgroup Master --------- ------- CHOSENNAME HDA WORKGROUP {computername of windows machine}
When I attempt to access the share(specifying the amahi user/pass, I get:
Failed to open /var/lib/samba/secrets.tdb
ERROR: Unable to open secrets database

Now I was reading somewhere that using the smbpasswd command is necessary to allow clients to connect to samba shares, I assume that amahi takes care of that?

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: Storage and files question

Postby sahrempire » Sun Jan 08, 2012 2:26 pm

well ill be danged. I created a new user, with a simple user/pass. and i can get in under that ok... does amahi have issues with capitalization and/or special characters in usernames? the original was created ex. User_Name... anyone had issues with this? I'll have to do some further testing to make sure we can use these things in passwords, it would be horrible for security if you can only have simple usernames and passwords, and a character limit.

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

Re: Storage and files question

Postby bigfoot65 » Sun Jan 08, 2012 2:31 pm

Yes, there is an issue with capitalization and special characters in user names. Always best to use lower case. That is typical for linux. You will notice very little capitalization is used traditionally.
ßîgƒσστ65
Applications Manager

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

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: Storage and files question

Postby sahrempire » Sun Jan 08, 2012 2:35 pm

any suggestions for getting the second drive mounted? The only other drive listed during the mount process was sda1 whic is listed as the boot drive. It is recognized by the os as sdb

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

Re: Storage and files question

Postby bigfoot65 » Sun Jan 08, 2012 2:45 pm

Is that drive formated? If not, then that is why it might not show up. You can also do that via Fedora desktop on the HDA.

If it is formated, then check to ensure it's not already listed in /etc/fstab as being mounted.
ßîgƒσστ65
Applications Manager

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

sahrempire
Posts: 22
Joined: Sat Jan 07, 2012 11:35 pm

Re: Storage and files question

Postby sahrempire » Sun Jan 08, 2012 2:52 pm

It is formatted, and it is not listed in etc/fstab. It is not detected using the diskmount command.

I manually mounted it using mount at /var/hda/files2 but it does not seem to appear. My guess is that /var/hda/files is the only folder slotted to be shared. could I create 2 directories in /files, one for each drive?

Who is online

Users browsing this forum: No registered users and 13 guests