• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

hey OT linux people....

Soybomb

Diamond Member
Any of you linux knowledge folk in here (shux, jonnyguru, etc) could you take a look at my thread here and give me a hand. I'm stumped 🙂Thanks
 
Some ideas:

1) Just use a shell script with useradd and changing the permissions. Problem solved.
2) There are also some default options in /etc/default/useradd... I'm willing to bet you can change the default home directory permission here, but it isn't immediately obvious how.
 
Helpless people 🙂 Just search for the latest thread by Soybomb in the OS forum.. not difficult
 
Link should work now 🙂
Any links to good basic scripting resources then? I havent done much like that and would need to see how to take input as a vairable such as making a script called webuser and then running
"webuser newuser"
to create newuser and then set the permissions for their directory.
Thanks!
 
Scripting resources? Who needs 'em? Just look at some existing bash/sh scripts and it's pretty simple. I don't have the syntax memorized but I can usually get by.

For example (as root):

% cd /usr/sbin
% vim/emacs/pico/<insert favorite text editor here> webuser

---snip---
#!/bin/bash
/usr/sbin/useradd $1
chmod 701 /home/$1
chmod 751 /home/$1/public_html
---snip---

% chmod u+x webuser

Then just run &quot;webuser <username>&quot; when you want to add a new user.
 
lol I still appreciate you all, *group hug* 😉
Thanks for the help, looks like that should work, and simple enough too 🙂
 
Back
Top