BiTBiTE_101
Cadet
- Joined
- Mar 27, 2018
- Messages
- 2
Hey guys!
I was just wondering on the correct syntax to display octal permissions of files on FreeNAS 11.
Currently on my Ubuntu server, I use:
But it returns an error complaining about the "-c" arg.
Looking at the stat manpage:
"-c --format=FORMAT
use the specified FORMAT instead of the default; output a newline after
each use of FORMAT"
When I use the "--format" it returns:
I just want something quick and dirty like my original command for Ubuntu. The reason for all this is I would love to teach the kids to access the server for themselves, but I want to restrict their access to my personal files. I already know how to do this but it's stumping me as to why I can't view the octal permissions like on my ubuntu server.
That said, I apologize for any format errors in this post; I've only ever had to inquire on forums a handful of times - usually I can just figure it out but all solutions I've found points to my initial syntax, which seems to be incorrect for FreeNAS 11.
I was just wondering on the correct syntax to display octal permissions of files on FreeNAS 11.
Currently on my Ubuntu server, I use:
Code:
stat -c "%a %n" *
But it returns an error complaining about the "-c" arg.
Looking at the stat manpage:
"-c --format=FORMAT
use the specified FORMAT instead of the default; output a newline after
each use of FORMAT"
When I use the "--format" it returns:
Code:
stat: illegal option -- -
I just want something quick and dirty like my original command for Ubuntu. The reason for all this is I would love to teach the kids to access the server for themselves, but I want to restrict their access to my personal files. I already know how to do this but it's stumping me as to why I can't view the octal permissions like on my ubuntu server.
That said, I apologize for any format errors in this post; I've only ever had to inquire on forums a handful of times - usually I can just figure it out but all solutions I've found points to my initial syntax, which seems to be incorrect for FreeNAS 11.