Programming :: Listing Sudo Users - Getting Empty Space In Between

May 20, 2010

I was trying to list sudo users in a Linux Machine,

[root@redhat ~]# grep -v -E '^#' /etc/sudoers
root ALL=(ALL) ALL
%work ALL=(ALL) ALL
%dilipvp ALL=(ALL) ALL

where work is a group and dilipvp is user. Can you help me in creating a better script which can list the members of the group work as well. and why I am getting empty space in between.

View 6 Replies


ADVERTISEMENT

General :: Listing The Created Users?

Jul 22, 2010

Is there a command to list all of the users I, as an administrator have created? It is difficult to tell the users I created from those created by the system by reading /etc/passwd. I thought 'man 5 passwd' would shed some light on this but is wasn't so

View 3 Replies View Related

General :: Listing All Users Who Currently Have Mail In Inbox?

Oct 25, 2010

How can I make a sorted list of all users on my local machine who currently have mail in their 'Inboxes' (i.e., their spool of delivered but not yet read email). I also need to include "system" users and list one user per line.

View 1 Replies View Related

Red Hat / Fedora :: History Of All Sudo Users And All Root Users In F13?

Jan 18, 2011

How can i see history of all sudo users and all root users in fedora 13 ? history command only shows one users history ?

View 5 Replies View Related

Security :: Sudo For Users But Only +r On Other /home/users Ubuntu 10.04 ?

Nov 1, 2010

We are trying to set up a classroom training environment where our SIG can hold classes for prospective converts from Microsoft/Mac. The ten machines will have /home/student01..10 and /home/linsig01..10 as users. We want /home/student01 to be able to explore and sudo so they can learn to administer their personal machines at home. We don't want them to be able to modify (sudo) /home/linsig01. I've seen the tutorial on Access Control Lists but I'd like other input so we get it right the first time.

View 3 Replies View Related

Software :: Bash Processing For Listing Passwordless Users?

May 14, 2009

I was asked to list passwordless or locked accounts in a fedora system. As far as I know, fedora or RH dont allow passwordless accounts (the system locks the account Edit: ... unless you set passwd -d :-P ), so I might show info about locked accounts.

I am totally aware that I could do a grep or an awk searching for "!!" or "", but my people is asking me to check against passwd -S (which prints info of accounts). The thing, is that in Solaris you can check with passwd -a -s all the users, but in Linux I couldnt find anything similar. what approach do you reccomend for passing, say , the list of users ( like the output of awk searching only user names) to the command passwd -S one by one?

View 4 Replies View Related

Ubuntu Installation :: Use The Empty Space For 9.10 [46gb]?

Feb 21, 2010

I have removed the trial of win 7 and want to use the empty space for Ubuntu 9.10, [46gb]. Opening disk utility shows 60gb hard drive, divided into system reserved 105mb, 46gb file system [Linux ext4 [version 1]], 13gb extended [contains no logical partitions], 13 gb [Linux ext4 [version 1]], 617mb swap space.Because I have given the 46gb space the same name as the 13gp space i.e. [Linux ext4 [version 1]],will this now be used By Ubuntu for data storage or do I need to do a complete re-install?

View 6 Replies View Related

Ubuntu :: 11GB Of Space Used On A Empty Ex4 Drive?

Mar 2, 2011

i got my powermac g3 up and running as a file server, i added a sata card and two 250GB hdd's which i promptley formatted as ex4, today i noticed one of the drives (the empty one) shows as having 11gb used, at first i thought it was a artifact of samba, but i cheacked the atual comp and ubuntu shows the drive as having 11GB used but it is compleatley empty? i then cheacked the outher drive which about 30GB of data on it, but it shows as having 40GB used?

View 8 Replies View Related

Ubuntu :: Browsing The Web - Massage - No Empty Space ?

May 18, 2011

I had been browsing the web, suddenly I got a massage "only 64 Kb of free space" I Opened disk usage analyzer and I found out that there are 70 GB in my home folder, However the sum of sub folders is only 35 GB, therefore there should be some kind of huge file in my home folder , but I CAnT find it?

I can't even open firefox because I don't have enough space

I found it , it was .xsessions-errors

View 1 Replies View Related

General :: Disk Space Used On Empty Partition?

May 26, 2009

The partition is formatted to ext3, starting with block 1 on the drive. The mount point for /dev/sdc1 lists 0 files when doing `ls -A` `df -h` shows that the partition has 92MB used. How is this space being used, and how can I free it up?edit: I guess this isn't a newbie question.

View 7 Replies View Related

Ubuntu :: 10.04 - Prepare Disk Space With Empty Array

Sep 30, 2010

I have a PC with Windows 2000 Pro installed in an NTFS partition of 60GB. My rest hard disk (500GB) is empty, no partition at all. When I run Ubuntu 10.04 installation after step number 3 I get a weird step number 4 showing prepare partitions with an empty array and no available command button at the bottom! So I can not create any partition... Also in step 4 I never see the "prepare disk space" menu. If I use a 9.04 Ubuntu CD and I try to install I get every menu fine as expected. I even tried the 10.04 CD to another PC with Windows XP PRO and the installer worked as expected for partitions.

View 1 Replies View Related

Debian Installation :: Resizing Drive During Install Leaves Empty Space Unusable

Sep 12, 2015

I just bought a new HP desktop, and I want to install Debian on the hard drive. I ran the Windows program on the Debian CD to start the install.

I selected Manual drive setting, and resized the large C: partition to 50 GB. I want to install Debian in some of the free space, only their isn''t any free space! The 400+ GB I took out of the C: partition is labeled "unusable" instead of "free space."

If I double click the unusable space, I am just given the cylinder/head/sector numbers. How I can make that space usable?

I would boot my Gparted CD, but I don't know how to get to the BIOS. The boot screen goes right to Windows without showing me the key to get to the BIOS. I tried hitting DEL, but to no effect. Do you know what the HP computers use to interrupt the boot?

View 4 Replies View Related

Programming :: Listing All Threads In A Process?

Dec 29, 2010

How to list all the threads spawned by a process?

View 4 Replies View Related

Programming :: Date Listing In Perl?

Jun 1, 2010

Using given program , i am able to print current date but is is possible to print last n no. of date. For example i want to print last three date staring from today. so o/p should be like

2010-06-02
2010-06-01
2010-05-31
Code:
my $myTimeStamp = "";
sub _timestamp
{

[Code]...

View 1 Replies View Related

Ubuntu :: No Users With Sudo Privileges?

Apr 15, 2010

I was adding me and my bud to a new group I created, but I used -G instead of -g as the tutorial suggested, I think this removed me from all other groups and put me in the new one. The same with my bud. Now I dont have sudo privileges, nor does my bud, and we have not set a password for the root account.

Code:
sudo ls -l
USER@SERVER:/var$ sudo password for USER:
USER is not in the sudoers file. this incident will be reported.
USER@SERVER:/var$

View 2 Replies View Related

Ubuntu :: Users Can't Log In And SU And SUDO Are Broke

Oct 5, 2010

I have a 10.04 machine that su and sudo will not work on. I am also unable to login as a user other than root.

I am haven't been to figure out what might the problem.

Obviously there is some kind of problem validating users, but I can't find it.

View 7 Replies View Related

Ubuntu :: Can't Get Sudo Users-admin To Run

Aug 2, 2011

I can't get sudo users-admin to run. This is the error I get:

Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported aborting...

View 2 Replies View Related

Software :: Allow Remote X Users To Sudo

Aug 14, 2010

Is there a way to allow users from a remote account (say, those connecting to the X server from a remote location) to sudo? What kind of account do you need to add to /etc/sudoers to be able to allow this to happen?

View 1 Replies View Related

Debian Programming :: Vhost Listing Script?

Sep 23, 2015

I run a small shellserver for my friends, and added a few IP's for vhosts. I tried google, but found nothing so I wonder if vhost listing script for IPv4 and IPv6?

View 1 Replies View Related

Programming :: Screen Listing Of Windows In A Session?

May 21, 2011

I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.

Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.

View 6 Replies View Related

Debian Configuration :: Prevent Users From Using Su / Sudo

Jul 24, 2010

i would like to prevent all users other than the user "parker" on my system from using the su or sudo commands. I have not attempted to modify the sudoers file so it just contains the standard root ALL = (ALL) ALL.

View 5 Replies View Related

Ubuntu :: Way To Run CRON Job For Something That 'normal' Users Need To Run As SUDO?

Jun 5, 2010

As per subject, what's the best way to run a CRON job for something that "normal" users need to run as SUDO? There is a problem with the internal clock on my PC so at a regular time (every hour or day for example) I want to sync with my Network Time server. I use "sudo ntpdate time.bgr.local" as it is now and have to enter my user's password for it to work.I know root is disabled by default and would like to keep it that way if possible but if I have to enable it and then add it to root's cron list the so be it but would prefer not to.

View 5 Replies View Related

Security :: Take Away Ability Of Using Sudo For Common Users

Mar 9, 2011

I decided to consult you before making any changes, because the clients' PCs are spread all over the country and I do not have the physical access to their boxes.The idea is to take away the ability of using sudo for common users.I know that the syntax of this file may vary a bit in different distributions.Our OS is Ubuntu 10.10.I created the account 'support' for me and other technician stuff of our department. So, 'support' user must have all the power. And common users mustn't have access to 'sudo'. This is the requirement.As far as I remember, in Slackware the user must be a member of 'wheel' group to be able to use 'sudo' (but I may be wrong).

View 3 Replies View Related

Server :: Reduce Privileges Sudo Users

Jul 31, 2010

i want to create a sudo user, sudo user should not start or stop the service. as like a normal user i created a user called root2 and i edited the user with visudo command and added the below line to the user root2 and got the full privilages.

root2 ALL=(ALL) ALL

i commented the below line ##Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig eventhough the sudo user root2 can start and stop the service which i dont want to give that privilage.

View 3 Replies View Related

Programming :: Passing Data Between Kernel Space To User Space In Asynchronous Way

Dec 13, 2010

I am developing a I2C CDROM client driver. The CDROM firmware supports TOC information read through a I2C command. It sends the TOC information in burst ( Interrupts a GPIO pin when it is ready ) and my CPU does a I2C read to read the TOC. When the CDROM firmware finishes sending the last data burst , it informs my CPU that it is done with the TOC, by a flag in the last data burst. I would like to know, which is the most efficinet way I can send these TOC information to userspace?

View 4 Replies View Related

Programming :: Function In Kernel Space Called Form User Space

Jul 7, 2009

I wanna write a file in kernel space but from my searching I can to know that instead of writeing file in kernel space ,I can write data to user space by copy_to_user space.

But link is missing ...I dont know how will my user space will access kernel space means my function in kernel space which will do copy_to_user /....How my user space function will call my kernel level function ..

Can any one of you provide me with some example file which are doing this .I know every char driver is using it ...but i could not trace back how user level function is accessing it ...i m confused between user space and kernel space.

View 2 Replies View Related

Programming :: Call Socket Prog Code Written In User Space From Kernel Space?

Jul 14, 2009

How to use execv from kernel space to call a user space program writtenfor socket prog.

I tried to write code for socket in kernel but its not working.

Socket code in kernel is also needed.

View 2 Replies View Related

Programming :: Pipe The Current Directory Listing Into Sort?

Oct 20, 2010

how to pipe the current directory listing into sort so that the output is the date in descending order (primary sort key). If there are multiple entries with the same date, I'd like the times sorted in ascending order. It seems simple but for some reason this isn't working:

ls -l | sort -k 6r -k 7

For some reason it doesn't seem to ever get to the second sort key when using column 6 (last modified date).

View 2 Replies View Related

Programming :: BASH: Listing Contents Of .zip File Into An Array?

May 18, 2010

I want to list the contents of a zip file amd put each entry into an array. I've been doing

[code]....

View 4 Replies View Related

Ubuntu :: Using Sudo To Restrict Users For Accessing Directories?

Jun 20, 2011

Is it possible to restrict users with 'sudo' from accessing certain directories? Rather than just exclude cd and ls from the sudo privileges, that is.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved