Sponsored Content
Full Discussion: List of superusers
Top Forums UNIX for Dummies Questions & Answers List of superusers Post 302748713 by Scrutinizer on Wednesday 26th of December 2012 06:31:22 PM
Old 12-26-2012
In addition, to complicate matters slightly, there may be (sudo) definitions in the sudoers file that allow regular users to gain root privileges...

Last edited by Scrutinizer; 12-27-2012 at 01:52 AM..
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

send email from address list and subject list

Hello, Here is my problem. there are two files. first.txt <<< contains email address ====== abc@mail.com abd@mail.com abe@mail.com second.txt <<< contains webpage links ======== http//www.test.com/abc/index.html http://www.test.com/abd/index.html http://www.test.com/abe/index.html... (2 Replies)
Discussion started by: paulds
2 Replies

2. UNIX for Dummies Questions & Answers

counting a list of string in a list of txt files

Hi there! I have 150 txt files named chunk1, chunk2, ........., chunk150. I have a second file called string.txt with more than 1000 unique strings, house, dog, cat ... I want to know which command I should use to count how many times each string appears in the 150 files. I have tried... (4 Replies)
Discussion started by: Pep Puigvert
4 Replies

3. UNIX for Advanced & Expert Users

help with sorting sequence in Unix C:sort -t ':' +0 -1 -n +1 -2 +2 -3 -o list list

Hi List is 000|2008-07-17|556543|RTJ|35-RTGJ|EYT 465|2008-11-10|567789|GHJ|45-DGHH|ETU 533|2008-09-06|567789|GHJ|45-DGHH|ETU How does it do it? sort -t ':' +0 -1 -n +1 -2 +2 -3 -o list list (6 Replies)
Discussion started by: gurvinder
6 Replies

4. Shell Programming and Scripting

Splitting a list @list by space delimiter so i can access it by using $list[0 ..1..2]

EDIT : This is for perl @data2 = grep(/$data/, @list_now); This gives me @data2 as Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared But I really cant access data2 by its individual elements. $data2 is the entire list, while $data,2,3...... (1 Reply)
Discussion started by: shriyer
1 Replies

5. Shell Programming and Scripting

find list of files from a list and copy to a directory

I will be very grateful if someone can help me with bash shell script that does the following: I have a list of filenames: A01_155716 A05_155780 A07_155812 A09_155844 A11_155876 that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies

6. Shell Programming and Scripting

Convert perl qw list to text file list?

Does anyone have a good example? I am having trouble looping.. Thanks (1 Reply)
Discussion started by: mrlayance
1 Replies

7. Programming

c++ function to convert a linear list to circular list

hi all, i need a c++ function which converts a linear list to circular. presently i am working with two files. i.e., one linear list file. and one circular list file to do some operations. i thought it will be helpful if there is a function that converts a linear list to circular n undo the... (1 Reply)
Discussion started by: vidyaj
1 Replies

8. Shell Programming and Scripting

Take a list if strings from a file and search them in a list of files and report them

I have a file 1.txt with the below contents. -----cat 1.txt----- 1234 5678 1256 1234 1247 ------------------- I have 3 more files in a folder -----ls -lrt------- A1.txt A2.txt A3.txt ------------------- The contents of those three files are similar format with different data values... (8 Replies)
Discussion started by: realspirituals
8 Replies

9. UNIX for Dummies Questions & Answers

Creating a column based list from a string list

I have a string containing fields separated by space Example set sr="Fred Ted Joe Peter Paul Jean Chris Tim Tex" and want to display it in a column format, for example to a maximum of a window of 100 characters And hopefully display some thing like Fred Ted Joe ... (3 Replies)
Discussion started by: kristinu
3 Replies

10. Shell Programming and Scripting

Copy list of files from a keyword list to another directory

Hello, I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work. The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Discussion started by: twjolson
5 Replies
statvfs(2)							System Calls Manual							statvfs(2)

NAME
statvfs, fstatvfs - get file system information SYNOPSIS
DESCRIPTION
returns information about a mounted file system. returns similar information about an open file. The parameters for the and functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a structure, which is where the file system status information is stored. fildes is a file descriptor for an open file, which is created with the successful completion of an or system call (see open(2), creat(2), dup(2), fcntl(2), or pipe(2)). The structure contains the following members: fsblkcnt_t f_blocks; /* total blocks of f_frsize on file system */ fsblkcnt_t f_bfree; /* free blocks */ fsblkcnt_t f_bavail; /* blocks available to non-superusers or users without the LIMIT privilege */ fsfilcnt_t f_files; /* total file nodes in file system */ fsfilcnt_t f_ffree; /* free file nodes in file system */ fsfilcnt_t f_favail; /* file nodes available to non-superusers or users without the LIMIT privilege */ ulong f_bsize; /* preferred file system block size */ ulong f_frsize; /* fundamental file system block size */ ulong f_size; /* see note below */ ulong f_fsid; /* file system ID for file system */ /* type; see sysfs(2) */ char f_basetype[FSTYPSZ]; /* file system type name is */ /* null-terminated */ ulong f_flag; /* bit mask of flags */ ulong f_namemax /* maximum file name length */ char f_fstr[32]; /* file system specific string */ time_t f_time; /* Last time file system was written */ The field f_size contains the size of file system in units. Note that this field is not part of the standard POSIX definition of When a 32-bit application uses with a large file system, f_size will top out at rather than return an error. Use f_blocks instead. The field f_basetype contains a null-terminated file-system-type name. The constant is defined in the header file The following flags can be returned in the f_flag field: File system is enabled for large files. File system is read-only. File system does not support and semantics. File system is exported (NFS). User quotas enabled on this file system. Group quotas enabled on this file system. Security Restrictions The field is the number of blocks available to non-superusers or users without the privilege. The field is the number of file nodes avail- able to non-superusers or users without the privilege. See privileges(5) for more information about privileged access on systems that sup- port fine-grained privileges. RETURN VALUE
and return 0 upon successful completion; otherwise, they return -1 and set to indicate the error. ERRORS
If fails, is set to one of the following values: Search permission is denied for a component of the path prefix. Too many symbolic links are encountered during path-name translation. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. The named file does not exist (for example, path is null or a component of path does not exist). A component of the path prefix is not a directory. If fails, is set to the following value: fildes is not a valid open file descriptor. When both and fail, is set to one of the following values: buf points to an invalid address. An I/O error occurred while reading from or writing to the file system. Result would overflow one or more fields of the struct. SEE ALSO
df(1M), fstatfs(2), fstatvfs64(2), quotactl(2), stat(2), statfs(2), statvfs64(2), sysfs(2), ustat(2), privileges(5). statvfs(2)
All times are GMT -4. The time now is 04:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy