I am planning the following to do. On my linux system I've got different users in the /home/ directory. These users have file limitations.
So every user below the /home/ directory should get a text file in a seperate folder /home/$user/files/ which tells him how many files he is already using.
For example:
The X for the files I know how to get:
But some little problems are still unclear for me.
1. How can look like a functionality which do the file creation including the Message for every directory in the /home/ directory?
2. How can I own the files to the related user? witch chown?
3. The file should have an automated filename with numbers with different numbers per User, how can I realise this?
Hi there,
Could you please help me with that ?
I want to grep a specific string in an .xml file and then rename the file according to the string I found.
How can I do that for many files. Because all the files have similar names but different time stamps I want to name them so it's easy to... (8 Replies)
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
Hello guys, I need some help to solve a little problem that I have here:
I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX 010001C00000000000099069799MOVISTAR_Tx ... (7 Replies)
Hello guys,
Forgive me if I duplicate the post but i think i make a mistake choosing the correct forum.
I need some help to solve a little problem, I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX ... (3 Replies)
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
I've began my journey at 7:50, and at this time i've lost 40 minutes in this easy but :confused::eek:-script.
Someone can help me ? I want to see the differences beetween all xml files in two directories (they must be equals), and this is my script:
#!/bin/bash
dir1="261108"... (5 Replies)
Hi RAM of my system is 24 GB however when i checked the processes pids and counted the memory usage by pmap i found out that the total memory usage is 36 GB
It s obvious that my system might be using some of virtual memory or swap space . How can i check which memory it is using and how ..
... (9 Replies)
Hello every one :D
I am very new in Linux ... that why I do not have any idea to write the script :confused:
I am trying to read some tutorial , but I do not have enough time to do it !
because I have to submit my project results in next Wednesday
I need your help to write script !
I will... (2 Replies)
Hi ...
i am new about HP -Solaris 10 x86
I have fresh hardware, I need to check the
RAM , CPU, BUS , Hard drives mounted
Can you please help me with commnds.
Thanks in advance (3 Replies)
Write a script, which of the directory including sources of kernel, choose files with sources in C (files with .c extension), including in name "io" with dirvers (located in random subdirectory drivers) and place their content in file FILE. (to 20 lines).
Could someone help me with this task?... (1 Reply)
Discussion started by: Czabi
1 Replies
LEARN ABOUT NETBSD
pam_chroot
PAM_CHROOT(8) BSD System Manager's Manual PAM_CHROOT(8)NAME
pam_chroot -- Chroot PAM module
SYNOPSIS
[service-name] module-type control-flag pam_chroot [arguments]
DESCRIPTION
The chroot service module for PAM chroots users into either a predetermined directory or one derived from their home directory. If a user's
home directory as specified in the passwd structure returned by getpwnam(3) contains the string ``/./'', the portion of the directory name to
the left of that string is used as the chroot directory, and the portion to the right will be the current working directory inside the chroot
tree. Otherwise, the directories specified by the dir and cwd options (see below) are used.
also_root Do not hold user ID 0 exempt from the chroot requirement.
always Report a failure if a chroot directory could not be derived from the user's home directory, and the dir option was not specified.
cwd=directory
Specify the directory to chdir(2) into after a successful chroot(2) call.
dir=directory
Specify the chroot directory to use if one could not be derived from the user's home directory.
SEE ALSO pam.conf(5), pam(8)AUTHORS
The pam_chroot module and this manual page were developed for the FreeBSD Project by ThinkSec AS and NAI Labs, the Security Research Division
of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BSD February 10, 2003 BSD