Cannot access my hda from windows

imgermany
Posts: 13
Joined: Sun Jan 04, 2015 6:24 am

Re: Cannot access my hda from windows

Postby imgermany » Mon Jan 05, 2015 4:21 pm

so i did

chown -R ingo:ingo /var/hda/files/books

this was my installation user which is visible in the user Tab and in the shares under settings of the hda.

the answer:
ungültiger benutzer "ingo:ingo" which means: unknown user

whoops? how can that be?

Maybe there ist still the bug with capitals in usernames? I read that an older amahi version had that bug that causes different problems? i think i used an "I" in the username "Ingo" at installation...should i do a new install?

how to check wether the user is really not there?

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

Re: Cannot access my hda from windows

Postby bigfoot65 » Mon Jan 05, 2015 6:06 pm

To see if the user exists, do the following:

Code: Select all

cat /etc/passwd
If the user is there, then it exists. Otherwise it does not.

Not sure about the capitalization in the name. I always use lowercase to be safe.
ßîgƒσστ65
Applications Manager

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

imgermany
Posts: 13
Joined: Sun Jan 04, 2015 6:24 am

Re: Cannot access my hda from windows

Postby imgermany » Tue Jan 06, 2015 2:52 pm

so:
Last login: Tue Jan 6 01:07:23 2015 from 192.168.1.201
[root@localhost ~]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-journal-gateway:x:191:191:Journal Gateway:/var/log/journal:/usr/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:999:998:User for polkitd:/:/sbin/nologinmysql:x:27:27:MariaDB Server:/var/lib/mysql:/bin/bash
apache:x:48:100:Apache:/usr/share/httpd:/sbin/nologin
saslauth:x:998:76:"Saslauthd user":/run/saslauthd:/sbin/nologin
avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
chrony:x:997:997::/var/lib/chrony:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
Ingo:x:1000:1000:Ingo M[ller:/home/Ingo:/bin/bash
test:x:1003:100:test:/home/test:/bin/bash
[root@localhost ~]#
as you see "Ingo" its written with capital.
Could that cause the problem?
The Userdescription "Ingo M[ller" with the "ü" ="[" will not cause trouble, or?

I think i'll do a clean install wihtout capital and "ü" and than we'll see...what do you think?

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

Re: Cannot access my hda from windows

Postby bigfoot65 » Tue Jan 06, 2015 3:05 pm

The capital letter should not match, but it could cause issues. When you do the chown command, try it with the capital letter and see if that works.

Reinstall should be a last resort. Let's try and fix the problem first.
ßîgƒσστ65
Applications Manager

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

imgermany
Posts: 13
Joined: Sun Jan 04, 2015 6:24 am

Re: Cannot access my hda from windows

Postby imgermany » Tue Jan 06, 2015 3:42 pm

The chown command was accepted with the capital letter
Last login: Wed Jan 7 00:24:29 2015 from 192.168.1.201
[root@localhost ~]# ls -al /var/hda/files
insgesamt 24
drwxr-xr-x. 6 Ingo Ingo 4096 5. Jan 23:12 .
drwxr-xr-x. 13 root root 4096 3. Jan 18:10 ..
drwxrwxrwx 2 Ingo Ingo 4096 6. Jan 01:04 books
drwxrwxr-x 2 Ingo Ingo 4096 5. Jan 23:12 docs
drwxrwxr-x 2 Ingo Ingo 4096 3. Jan 20:04 tv
drwxrwxr-x 2 Ingo Ingo 4096 3. Jan 21:32 wdc1000
[root@localhost ~]#
Access to the shares is still the same problem. :-/

what next?
Last edited by imgermany on Tue Jan 06, 2015 3:49 pm, edited 1 time in total.

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

Re: Cannot access my hda from windows

Postby bigfoot65 » Tue Jan 06, 2015 3:48 pm

You seem to have a real mess here. A reinstall might be best as much as I hate to admit it. Please ensure you follow http://docs.amahi.org.

I would recommend you pick a single name user, no capitalization or symbols. Then ensure you use a 6-8 character password at a minimum.

Sometimes its better to cut the loses early and just reinstall.
ßîgƒσστ65
Applications Manager

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

imgermany
Posts: 13
Joined: Sun Jan 04, 2015 6:24 am

Re: Cannot access my hda from windows

Postby imgermany » Wed Jan 07, 2015 4:33 pm

i did the new install, now it looks good!

Accessing the shares works fine now.

I`m not sure wether it was because of the capitals - shall i do another testinstall to verifiy if that causes the error?

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

Re: Cannot access my hda from windows

Postby bigfoot65 » Wed Jan 07, 2015 4:43 pm

Glad to hear it's working now. I would say if it's not broken don't mess with it. We will test an install with a user that has capitalization. Thanks for the offer though.
ßî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 2 guests