| bio | website | willshouse.com |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 8 months |
| seen | 11 hours ago | |
| stats | profile views | 132 |
|
11h |
revised |
What type of permissions should a user's home directory and files have? umask was wrong (previous edit) and added the -m to create the home directory |
|
1d |
comment |
What type of permissions should a user's home directory and files have? Thx - this helps with the second part of the question. |
|
1d |
comment |
What type of permissions should a user's home directory and files have? @Anthon - yup. I missed the -K part in man - but I did look over it before asking (not well enough). However the man page still does not explain why it says If not specified, the mask will be initialized to 022. Also, it does not seem that adduser provides any other benefit besides an interactive prompt based system - it, too, creates the home directories by default as 755. |
|
1d |
comment |
What type of permissions should a user's home directory and files have? That sounds good to me. I will give it a shot. Thank you. |
|
1d |
comment |
What type of permissions should a user's home directory and files have? leave a reason if you downvote |
|
1d |
accepted | What type of permissions should a user's home directory and files have? |
|
1d |
comment |
What type of permissions should a user's home directory and files have? Interesting. So without that I guess it just is using the default umask set in the shell session ? |
|
1d |
comment |
What type of permissions should a user's home directory and files have? Don't they need to be at least 711 if they contain something like a public_html folder, or if one of the subdirectories is a shared / group folder? Also, can you set them as your 700 by default somehow with the useradd -m command ? Also - why would Ubuntu even think it is OK to default to 755? |
|
1d |
asked | What type of permissions should a user's home directory and files have? |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? @don_crissti - thanks! mb update your answer to use the >= instead of just > - also, for others - on OS X the commands from coreutils are gnumfmt and gstat. how odd. thanks! now i have it working on linux and osx! |
|
1d |
accepted | How can I display octal notation of permissions with ls - and can octal represent all permissions? |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? @Sukminder - you're right about the changes but some of the other flags don't line up as well. I'm going to give up try and install GNU stat (if I can find it in a homebrew repo) because I want it to work the same as it does on the Linux boxes I work with. ( I've already got GNU sed so hopefully I can soon use the same syntax on both systems for stat too). Unfortunately right now coreutils is at 8.21 with homebrew though :( |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? while this looks really good I want it to work with systems that aren't the most cutting edge as well, and numfmt seems to require a pretty new system as I just checked out corutils and 8.21 fairly new and as you mentioned it requires > 8.21 for numfmt. Also on OS X (which is not really linux I know) the stat command seems to be having trouble with the the --printf part. |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? B, K, M, G would be fine - just human readable is preferable |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? wow that certainly looks exactly like an ls listing. nice! |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? per the question - I see there IS a hack of way to use awk or perl to show octal permissions when using ls, but with bash is there anything more native - just sayin |
|
1d |
comment |
How can I display octal notation of permissions with ls - and can octal represent all permissions? That looks pretty good - even works with the sticky bit! thanks! wish the file sizes lined up better but its close enough :) |
|
1d |
revised |
How can I display octal notation of permissions with ls - and can octal represent all permissions? deleted 14 characters in body; edited title |
|
1d |
asked | How can I display octal notation of permissions with ls - and can octal represent all permissions? |
|
1d |
awarded | Popular Question |