paylesspizzaman
Explorer
- Joined
- Sep 1, 2015
- Messages
- 92
Can I just set the home directory location for my user to one of the shares I already have up and working? I don't have any permission issues with those.
. . . . in the first post of this thread.There is a script for checking drive status somewhere . . . .
[root@freenas] ~# camcontrol devlist <ATA ST4000DM000-1F21 CC54> at scbus0 target 8 lun 0 (pass0,da0) <ATA ST4000DM000-1F21 CC54> at scbus0 target 9 lun 0 (pass1,da1) <ATA ST4000DM000-1F21 CC54> at scbus0 target 10 lun 0 (pass2,da2) <ATA ST4000DM000-1F21 CC54> at scbus0 target 11 lun 0 (pass3,da3) <ATA ST4000DM000-1F21 CC54> at scbus0 target 12 lun 0 (pass4,da4) <ATA ST4000DM000-1F21 CC52> at scbus0 target 13 lun 0 (pass5,da5) <ATA ST4000DM000-1F21 CC52> at scbus0 target 14 lun 0 (pass6,da6) <ATA ST4000VN000-1H41 SC46> at scbus0 target 15 lun 0 (pass7,da7) <ATA ST4000DM000-1F21 CC54> at scbus0 target 16 lun 0 (pass8,da8) <ATA ST4000DM000-1F21 CC54> at scbus0 target 17 lun 0 (pass9,da9) <ATA ST4000DM000-1F21 CC54> at scbus0 target 18 lun 0 (pass10,da10) <ATA ST4000DM000-1F21 CC54> at scbus0 target 19 lun 0 (pass11,da11) <ATA ST4000DM000-1F21 CC52> at scbus0 target 20 lun 0 (pass12,da12) <ATA ST4000DM000-1F21 CC54> at scbus0 target 21 lun 0 (pass13,da13) <ATA ST4000DM000-1F21 CC52> at scbus0 target 22 lun 0 (pass14,da14) <ATA ST4000DM000-1F21 CC54> at scbus0 target 23 lun 0 (pass15,da15) <HP HP SAS EXP Card 2.08> at scbus0 target 24 lun 0 (ses0,pass16) <SanDisk SDSSDA120G U21010RL> at scbus2 target 0 lun 0 (ada0,pass17) <ST2000DM001-9YN164 CC9C> at scbus3 target 0 lun 0 (ada1,pass18) <ST2000DM001-9YN164 CC9C> at scbus5 target 0 lun 0 (ada2,pass19) <ST2000DM001-9YN164 CC9C> at scbus6 target 0 lun 0 (ada3,pass20)
Wow, you have a bunch of disks there!Also maybe of note, is that in order to get my devlist, I had to run "camcontrol devlist" as root. I tried with the user I created, but was told "Permission denied".
ls -l
drwxrwxr-x+ 2 Behemoth wheel 4 Feb 4 13:02 ./ drwxrwxr-x+ 6 root wheel 7 Feb 4 06:43 ../ -rw-r--r-- 1 root wheel 0 Feb 4 06:43 .windows -rwxrwxr-x+ 1 Behemoth wheel 2411 Feb 4 13:02 spincheck.sh*
Well, in any case the script has execute privileges for everyone, so at some point chmod +x must have worked. And it is owned by Behemoth, presumably the user name.When you created the dataset, did you choose Windows permissions? If so, that would explain why you can't chmod.
[Behemoth@freenas] ~% sudo ./spincheck.sh Password: sudo: unable to execute ./spincheck.sh: No such file or directory [Behemoth@freenas] ~% su Password: [Behemoth@freenas] /mnt/MainVolume/Behemoth-Home# ./spincheck.sh ./spincheck.sh: Command not found. [Behemoth@freenas] /mnt/MainVolume/Behemoth-Home#
[Behemoth@freenas] ~% ls -l total 27 drwxrwxr-x+ 2 Behemoth wheel 3 Feb 4 18:33 ./ drwxrwxr-x+ 6 root wheel 7 Feb 4 18:30 ../ -rwxrwxr-x+ 1 Behemoth wheel 2411 Feb 4 13:02 spincheck.sh* [Behemoth@freenas] ~% sudo ./spincheck.sh Password: sudo: unable to execute ./spincheck.sh: No such file or directory [Behemoth@freenas] ~% su Password: [Behemoth@freenas] /mnt/MainVolume/BehemothTest# ls -l total 27 drwxrwxr-x+ 2 Behemoth wheel 3 Feb 4 18:33 ./ drwxrwxr-x+ 6 root wheel 7 Feb 4 18:30 ../ -rwxrwxr-x+ 1 Behemoth wheel 2411 Feb 4 13:02 spincheck.sh* [Behemoth@freenas] /mnt/MainVolume/BehemothTest# ./spincheck.sh ./spincheck.sh: Command not found.
I'm a bit befuddled why the shell is unable to find the script when it is right there.I destroyed the old dataset, created a new one, selected the dataset as the home directory for my user Behemoth, copied the original spincheck.sh to the new dataset and ran a few commands. What do all the letters in front mean? Also, does this prove the file is in the correct location?