08-09-2006
1) Is it possible to retrieve a list of user(ID) file permissions?
See the man page for the find command
$ find . -user username -ls
username can be either a username or a numeric user ID.
2) What is the most efficient way to create an alert/error message when/if those file permissions are denied?
The system will provide a error message - what more do you want?
$ls -l /var/adm/sulog
-rw------- 1 root root 71386 Aug 1 12:00 /var/adm/sulog
$ cat /var/adm/sulog
/var/adm/sulog: Permission denied
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What shellscript would I use If I wanted to list all files in the current directory which are identical to a certain filename. I am told to use binary comparison but have been unable to find out what this means.
I have tried man pages and can find a file of a certian filename
but cant seem to... (1 Reply)
Discussion started by: gavinlow1980
1 Replies
2. UNIX for Dummies Questions & Answers
Hey,
I've been a windows guy all my life, but i have finally decided to move to Unix and buy a Mac. I am pretty good with a lot of programming applications on windows, but was wondering if u guys had any advice on how to get started on Unix, like books to read, applications to buy, websites,... (8 Replies)
Discussion started by: Mafia
8 Replies
3. Shell Programming and Scripting
Hi
Im a newbie to unix having been a windows guy, yes I know a swear word on here ? but part of my new job is to be trained up on Unix.
On the course we were set a task to read a file that has dates times codes etc, a log file. see below as an example
2007/02/19 00:00:06: Information: Switch... (3 Replies)
Discussion started by: MyNameisEarl
3 Replies
4. Ubuntu
Basicly im trying to edit a file for apache2 in /var/etc/apache2 and i dont have permissions, my login name is associated with root but i still can't do anything, Does anyone have any ideas?
Thanks in advance! (3 Replies)
Discussion started by: sypherz
3 Replies
5. Shell Programming and Scripting
Hi
Can we call a jsp page from Unix.if so please let me know how we can..
thanks for the help in advance...
thanks
kumar (0 Replies)
Discussion started by: mailsukumar
0 Replies
6. UNIX for Dummies Questions & Answers
i have just installed UNIX 7.01 to replace a windows server2003 used for my family to share and remotely save photos
i need to set it up so very novice users can view, import and export photos most of the remote users will have windows machines,i use Linux, Mac and windows.
most of what i want... (2 Replies)
Discussion started by: chance63
2 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies
8. UNIX for Dummies Questions & Answers
hiii i have few questions..i hav just started using unix....i got two
doubts or problems as per now, if anyone can clarify it or solve it, his/her help is highly appreciated..
1) how to Rename all files which contain the sub-string 'foo', replacing it with 'bar' within a given folder.
2)How to... (1 Reply)
Discussion started by: vicky1989
1 Replies
9. UNIX Desktop Questions & Answers
Hi everyone! Thanks for taking the time.
I've installed redhat and ubunto on vmware virtually.
I want to try unix and I tried to look in the internet but wasn't able to accomplish my desire task.
Any links for install, download links and information will be honestly appreciated. I will be... (6 Replies)
Discussion started by: michaelttkk
6 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
1. How are we going to call .cmd files which is in window under Unix Environment?
2. Is there any equivalent command in Unix for "start" which is available in Windosw?
Thx very much. (5 Replies)
Discussion started by: jessy83
5 Replies
LEARN ABOUT DEBIAN
cgconfigparser
CGCONFIGPARSER(8) libcgroup Manual CGCONFIGPARSER(8)
NAME
cgconfigparser - setup control group file system
SYNOPSIS
cgconfigparser [-h] [-l <filename>] [-L <directory>] [...]
OPTIONS
-h, --help
Displays help.
-l, --load=FILE
Parses the control groups configuration file Sets up the control group file system defined by the configuration file and mounts
mount points defined by the configuration file. The format of the file is described in cgconfig.conf. This option can be used mul-
tiple times and can be mixed with -L option.
-L, --load-directory=DIR
Finds all files in given directory and parses them in alphabetical order like they were specified by -l option. This option can be
used multiple times and can be mixed with -l option.
-a <agid>:<auid>
defines the default owner of the rest of the defined control group's files. These users are allowed to set subsystem parameters and
create subgroups. The default value is the same as has the parent cgroup.
-d, --dperm=mode
sets the default permissions of a control groups directory. The permissions needs to be specified as octal numbers e.g. -d 775.
-f, --fperm=mode
sets the default permissions of the control group files. The permissions needs to be specified as octal numbers e.g. -f 775. The
value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others permis-
sions to the owners permissions).
-s, --tperm=mode
sets the default permissions of the control group tasks files. The permissions needs to be specified as octal numbers e.g. -f 775.
The value is not used as given because the current owner's permissions are used as an umask (so 777 will set group and others per-
missions to the owners permissions).
-t <tuid>:<tgid>
defines the default owner of tasks file of the defined control group. I.e. this user and members of this group have write access to
the file.
SEE ALSO
cgconfig.conf (5)
Linux 2009-03-16 CGCONFIGPARSER(8)