NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

kenalker's avatar
kenalker
Aspirant
Feb 15, 2016
Solved

ReadyNAS 314 home directory owner and group

I am running a ReadyNAS 314 with firmware 6.4.2 (upgraded today).  I have been having some problems lately and I believe it may be due to the ownership of my home directory.  My home directory is owned by "ken" (one of my two users who have shares [me]).  I did some searching on these forums and found others whose home directories were owned by root, admin, and guest so I've not figured out just WHO should own the home directory (and what group it should belong to).  I am hoping someone (perhaps at NetGear) who has access to a 100% fresh ReadyNAS (preferably with 6.4.2, but I won't be choosy) that hasn't been tinkered with could post an "ls -al" of the root directory for me.  I'll certainly take other people's input too (if you haven't been goofing around in your root directory via ssh).  I'd like to see an "ls -al" in the home directory as well.

 

Mine root directory looks like this:

root@readynas:/# ls -al
total 72
drwxr-xr-x   1 root  root   242 Feb 14 08:20 .
drwxr-xr-x   1 root  root   242 Feb 14 08:20 ..
drwxrwxrwx   1 admin admin   90 Feb 14 08:20 apps
drwxr-xr-x   1 root  root  1632 Feb 14 08:19 bin
drwxr-xr-x   1 root  root     0 May 21  2012 boot
drwxr-xr-x   1 root  root  1380 Jan 19 15:02 data
drwxr-xr-x  15 root  root  3380 Feb 14 08:20 dev
drwxr-xr-x   1 root  root  2502 Feb 14 15:29 etc
drwxr-xr-x   1 root  root    54 Feb 14 08:19 frontview
drwxr-xr-x   1 ken   users  152 Dec 28 21:02 home
lrwxrwxrwx   1 root  root     5 Dec 27  2014 homes -> /home
drwx------   1 root  root     0 Jan  3  2015 job_005
drwxr-xr-x   1 root  root   636 Feb 14 08:19 lib
drwxr-xr-x   1 root  root    40 Feb 14 08:19 lib64
drwxr-xr-x   4 root  root    80 Feb 14 08:20 media
drwxr-xr-x   1 root  root     0 May 21  2012 mnt
drwxr-xr-x   1 root  root    98 Nov 25 16:59 opt
dr-xr-xr-x 208 root  root     0 Feb 14 08:19 proc
-rw-------   1 root  root  1024 Sep 11  2014 .rnd
drwx------   1 root  root   118 Feb 14 08:19 root
drwxrwxr-x  23 root  admin  820 Feb 14 15:14 run
drwxr-xr-x   1 root  root  2750 Feb 14 08:19 sbin
drwxr-xr-x   1 root  root     0 Feb 28  2012 selinux
drwxr-xr-x   1 root  root     0 Jun  4  2012 srv
dr-xr-xr-x  12 root  root     0 Feb 14 15:30 sys
drwxrwxrwt   1 root  root   150 Feb 14 15:29 tmp
-rw-r--r--   1 root  root     0 Feb 14 08:18 .update_success
drwxr-xr-x   1 root  root    70 Nov 25 16:59 usr
drwxr-xr-x   1 root  root   158 Feb 14 08:19 var

 My home directory looks like this:

root@readynas:/home# ls -al
total 40064
drwxr-xr-x 1 root root       152 Dec 28 21:02 .
drwxr-xr-x 1 root root       242 Feb 14 08:20 ..
drwxr-xr-x 1 ken  users       28 Feb 14 16:04 admin
drwxr-xr-x 1 ken  users    14248 Feb 14 16:04 ken
drwxr-xr-x 1 lena users       46 Feb 14 16:04 lena
  • I did a factory reset recently, and I haven't touched the permissions with ssh.  The only user is admin.  The system has two volumes (data and data2)

     

    root@RN102:~# cd //
    root@RN102://# ls -al
    total 148
    drwxr-xr-x  26 root  root   4096 Feb  8 09:27 .
    drwxr-xr-x  26 root  root   4096 Feb  8 09:27 ..
    drwxrwxrwx   1 admin admin    70 Feb  4 07:31 apps
    drwxr-xr-x   2 root  root   4096 Feb  4 07:14 bin
    drwxr-xr-x   2 root  root   4096 Jun 17  2012 boot
    drwxr-xr-x   1 root  root    236 Feb  4 07:28 data
    drwxr-xr-x   1 root  root     54 Feb  4 07:29 data2
    drwxr-xr-x  16 root  root  13640 Feb  4 07:31 dev
    drwxr-xr-x  73 root  root   4096 Feb  4 07:32 etc
    drwxr-xr-x   6 root  root   4096 Feb  4 07:15 frontview
    -rw-r--r--   1 root  root      0 Feb  4 07:32 ftp_ban.tbl
    drwxr-xr-x   1 admin admin    10 Feb  4 07:28 home
    drwxr-xr-x  14 root  root   4096 Feb  4 07:14 lib
    lrwxrwxrwx   1 root  root     14 Feb  4 07:30 localtime -> /etc/localtime
    drwx------   2 root  root  16384 Feb  4 07:14 lost+found
    drwxr-xr-x   2 root  root     40 Feb  4 07:31 media
    drwxr-xr-x   2 root  root   4096 Jun 17  2012 mnt
    drwxr-xr-x   9 root  root   4096 Feb  4 07:14 opt
    dr-xr-xr-x 169 root  root      0 Dec 31  1969 proc
    -rw-------   1 root  root   1024 Feb  4 07:15 .rnd
    drwx------   3 root  root   4096 Feb  4 07:15 root
    drwxrwxr-x  23 root  admin   820 Feb 14 20:33 run
    drwxr-xr-x   2 root  root   4096 Feb  4 07:14 sbin
    drwxr-xr-x   2 root  root   4096 Jun 10  2012 selinux
    drwxr-xr-x   2 root  root   4096 Nov 17  2012 srv
    dr-xr-xr-x  11 root  root      0 Feb  4 07:31 sys
    drwxrwxrwt   7 root  root   4096 Feb 14 20:17 tmp
    drwxr-xr-x  10 root  root   4096 Feb  4 07:15 usr
    drwxr-xr-x  16 root  root   4096 Feb  4 07:15 var
    

       

    root@RN102:// cd home 
    root@RN102://home# ls -al
    total 4
    drwxr-xr-x 1 admin admin 10 Feb 4 07:28 .
    drwxr-xr-x 26 root root 4096 Feb 8 09:27 ..
    drwx------ 1 admin admin 0 Feb 4 07:36 admin
    root@RN102://home#

3 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    I did a factory reset recently, and I haven't touched the permissions with ssh.  The only user is admin.  The system has two volumes (data and data2)

     

    root@RN102:~# cd //
    root@RN102://# ls -al
    total 148
    drwxr-xr-x  26 root  root   4096 Feb  8 09:27 .
    drwxr-xr-x  26 root  root   4096 Feb  8 09:27 ..
    drwxrwxrwx   1 admin admin    70 Feb  4 07:31 apps
    drwxr-xr-x   2 root  root   4096 Feb  4 07:14 bin
    drwxr-xr-x   2 root  root   4096 Jun 17  2012 boot
    drwxr-xr-x   1 root  root    236 Feb  4 07:28 data
    drwxr-xr-x   1 root  root     54 Feb  4 07:29 data2
    drwxr-xr-x  16 root  root  13640 Feb  4 07:31 dev
    drwxr-xr-x  73 root  root   4096 Feb  4 07:32 etc
    drwxr-xr-x   6 root  root   4096 Feb  4 07:15 frontview
    -rw-r--r--   1 root  root      0 Feb  4 07:32 ftp_ban.tbl
    drwxr-xr-x   1 admin admin    10 Feb  4 07:28 home
    drwxr-xr-x  14 root  root   4096 Feb  4 07:14 lib
    lrwxrwxrwx   1 root  root     14 Feb  4 07:30 localtime -> /etc/localtime
    drwx------   2 root  root  16384 Feb  4 07:14 lost+found
    drwxr-xr-x   2 root  root     40 Feb  4 07:31 media
    drwxr-xr-x   2 root  root   4096 Jun 17  2012 mnt
    drwxr-xr-x   9 root  root   4096 Feb  4 07:14 opt
    dr-xr-xr-x 169 root  root      0 Dec 31  1969 proc
    -rw-------   1 root  root   1024 Feb  4 07:15 .rnd
    drwx------   3 root  root   4096 Feb  4 07:15 root
    drwxrwxr-x  23 root  admin   820 Feb 14 20:33 run
    drwxr-xr-x   2 root  root   4096 Feb  4 07:14 sbin
    drwxr-xr-x   2 root  root   4096 Jun 10  2012 selinux
    drwxr-xr-x   2 root  root   4096 Nov 17  2012 srv
    dr-xr-xr-x  11 root  root      0 Feb  4 07:31 sys
    drwxrwxrwt   7 root  root   4096 Feb 14 20:17 tmp
    drwxr-xr-x  10 root  root   4096 Feb  4 07:15 usr
    drwxr-xr-x  16 root  root   4096 Feb  4 07:15 var
    

       

    root@RN102:// cd home 
    root@RN102://home# ls -al
    total 4
    drwxr-xr-x 1 admin admin 10 Feb 4 07:28 .
    drwxr-xr-x 26 root root 4096 Feb 8 09:27 ..
    drwx------ 1 admin admin 0 Feb 4 07:36 admin
    root@RN102://home#

    • mdgm-ntgr's avatar
      mdgm-ntgr
      NETGEAR Employee Retired

      The "ken" home directory itself should be owned by ken:users, but /home should be owned by admin:admin

      • kenalker's avatar
        kenalker
        Aspirant

        Thank you.  It appears that permissions and ownership for the home/admin folder are incorrect as well.  I'm going to reset them to what StephenB shows in his.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More