Debian :: Autologin And Update / Without The Password(s) / Su/sudo To Execute?

Oct 28, 2010

I have succesfully installed Debian with gnome-core, iceweasel and other useful packages and also followed this guide to autologin and start X. I noticed that the sudo chmod +s /sbin/halt and adding /sbin/halt
in ~/.bashrc made Debian refuse me to log out (from X) and 'log out' turns off the computer insted.Removing /sbin/halt from .bashrc turned everything to as i want it. Should I "repair" or remove something I created with chmod +s command or should I leave it as it is?

Also I would like apt-get(or aptitude) update to run after login (and before startx), so i added sudo apt-get update to .bashrc but it will prompt me with password. Is there someway I could do this without the password(s) which su/sudo needs to execute? This is not so important but it would be very nice to update the system on startup.

View 5 Replies


ADVERTISEMENT

Debian :: Autologin Not Working / Get It To Autologin At Startup?

Dec 1, 2010

I've built a system and installed Debian 5.0.7 on it, the one thing I'd like to do is to get it to autologin at startup. I've changed my /etc/inittab and ~/.bash_profile as per the instructions in this thread:

viewtopic.php?f=16&t=29333

so that they look like this:
/etc/inittab:
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
code....

View 3 Replies View Related

Debian :: Sudo Apachectl Will Not Execute?

Oct 1, 2010

I finally got my path to save so apachectl is in my path. I can execute apachectl start as a regular user, although the server wont start because there is some sort of lock. When I sudo apachectl start , I get sudo: apachectl:command not found. My visudo file looks like this:Defaults env_keep += "PATH"

User_AliasOWnER=blake
root All=(ALL) ALL
OWNER ALL= NOPASSWD:ALL

View 14 Replies View Related

Programming :: Sudo In Shell Script \ Ask For The Password Then Execute The Script At Background And Get Back To Menu?

May 27, 2011

Whats wrong with this line?Code:sudo -u user /usr/bin/nohup sh /home/user/somescript.sh &This should ask for the password then execute the script at background and get back to menu

View 8 Replies View Related

Fedora :: Autologin On Console (FC13) / Enable Autologin On Desired Tty For Certain User?

Aug 8, 2010

Code:
# cat /etc/init/tty.conf
# This service maintains a getty on the sepcified device.

stop on runlevel [016]
respawn
instance $TTY
exec /sbin/mingetty $TTY
exec /sbin/mingetty --autologin user tty1
when i use this conf I'm auto logged back in again , and cant't execute any command
commenting pre-last line has no effect.

How to enable autologin on desired tty for certain user?

View 6 Replies View Related

OpenSUSE Install :: Inconsistent Autologin / Can't Get Autologin To Work Consistently?

Nov 29, 2009

I've been on 11.2 KDE for about a week (clean install). Previously on 11.1 Gnome. Everything's great except I can't get Autologin to work consistently. It worked perfectly in 11.1 Gnome! In 11.2 KDE sometimes it works and sometimes it doesn't. I set it up as root in both Yast and System Settings.

View 6 Replies View Related

OpenSUSE Install :: Autologin Xfce 4 / Can Not Enable Autologin?

Feb 17, 2010

I use Xfce 4.I can not enable autologin.I make the necessary changes:

Yast
system
editor / etc / sysconfig /
desktop
display manager
and put my name in
DISPLAYMANAGER_AUTOLOGIN
code....

View 9 Replies View Related

Debian Configuration :: Sudo Forgets Password Instantly / Why Is So?

Feb 2, 2011

I have two machines running Debian Squeeze (a laptop and a desktop). On my laptop sudo works fine, however on my desktop sudo doesn't remember my password for 1 second!!! I have created a script for the upgrade procedure with apt (to make things easier). The script is nothing more than a few commands separated by operators. It is completely useless if I have to enter my password six times while my script is running.

I tried to add timestamp_timeout=15 to the sudoers but it didn't help.

Does anyone have any idea why this could be?

View 2 Replies View Related

Debian Multimedia :: KDE 3.5 On Lenny Root Password Or Sudo?

Aug 14, 2010

I have just installed Lenny on a Thinkpad R50p. During the install I opted for no root password, using the sudo option instead (I've been used to this on Kubuntu for a long time). After installing, I added KDE 3.5 with apt-get install kde-desktop - all seems to be OK, except that I am unable to add packages or perform tasks for which a root / admin password is needed. It seems that the install-time choice of sudo (shared password) does not propagate to the KDE install, which is still expecting a root password.

how to either enable the KDE desktop to work with this shared password setup, or whether there is a better route to a KDE 3.5 desktop than just installing as I did (I am aware of Trinity KDE 3.5 but the Pearson Computing source is still not up, are those packages available for Lenny anywhere else, and are they recommended?). I can of course rerun the whole install and choose root & user passwords but if there is a smarter solution it would be less of a 'reinstall Windows' type of fix

I've had a very frustrating time the last few months trying to find a KDE4 based desktop that is stable enough and not lacking some basic functions (print manager, for goodness sake), so I have temporarily thrown in the towel and will try a Stable installation that is not changing (breaking) all the time, until KDE4 series gets past this adolescent stage of development and settles down.

I do need to get back to a system I can work on rather than keep on trying different installations!

View 10 Replies View Related

Debian Configuration :: Sudo Apt-get Update Error / Malformed Release File?

May 13, 2011

I keep getting this error on my debian server (Buffalo Linkstation so there is no GUI):

Debian Linux Version 2.6.12.6-arm1
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/Release  Unable to find expected entry  main/binary-arm/Packages in Meta-index file (malformed Release file?)
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release  Unable to find expected entry  main/binary-arm/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.Ive tried and tried changing the source.list to different repos but keep getting the same error over and over. Im really not sure what to do and I have no idea how to fix it. Its been working fine for the longest time.

source.list
#### Debian Main Repos
#deb http://http.us.debian.org/debian/ stable main contrib non-free
#deb-src http://http.us.debian.org/debian stable main contrib non-free
#deb http://security.debian.org stable/updates main contrib non-free
#deb-src http://security.debian.org stable/updates main contrib non-free

[Code]...

View 5 Replies View Related

OpenSUSE :: Can't Execute Some Command With Sudo?

Nov 29, 2010

I would like to have an user that can execute al command with sudo.I configured sudo with yast2 and in the sudoers file actually there is a line with:USER ALL = (ALL) ALLWhere user is my username.But I can't use some command like ifconfig becouse it say that it can't find the command. I think that this is becouse of path, but shouldn't i get root path using sudo?

View 3 Replies View Related

General :: Execute A Command After Sudo?

May 4, 2011

I am working in a CentOS environment with numerous CentOS machines. Currently there are multiple developers that each have their own login/home directory and then for various admin tasks we all share a single super user account.

The problem

I have a number of aliases, variables, functions, and settings that exist in my personal login's .bash_profile. None of these are available in the shared super user's .bash_profile. My current work around is that everytime I sudo in as the super user and I re-execute my .bash_profile from my personal user's home directory. I am not allowed to edit the init stuff for the super user

The Question

Is there any way I can automate my sudo sequence such that it will execute my personal .bash_profile after I've executed sudo without requiring me to edit the super user's bash init stuff?

View 3 Replies View Related

Slackware :: Cant Execute File In /bin With Sudo?

Dec 28, 2010

I've created a firewall with iptables rules and saved them into my bin directory (then changed them to executable) However i cant use "sudo firewall-start" it just prints a whole heap of garbage. When i use the "sudo firewall-start" command as root, it works perfectly. Im sure there's a simple solution to this problem, but cant seem to find one in the forums.

View 5 Replies View Related

Ubuntu :: Sudo And Login Password Recognized - Password Box Does Not Like

Apr 27, 2010

I needed to use Synaptic Package Manager to install an app, but the dialog box ("enter the Administrative Password") that pops up before you can use Synaptic doesn't recognize my password ("incorrect password). I tried typing it into a text editor and it's spelled right, caps lock not turned on or anything.

In Terminal, sudo recognizes it, and it is recognized when I log into Ubuntu. I'm the sole user, I have admin privileges, I've been doing admin things.

I just now did System > Administration > Users and Groups and got a dialog box saying

"Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Server ping error: IDLmg.org/CORBA/COMM_FAILURE:1.0)"

Moving past that, I changed my user password, and Ubuntu authenticated it.

How do you launch Synaptic Package Manager from the command line?

View 4 Replies View Related

General :: Execute Root Command Without Sudo?

Jan 24, 2010

On my ubuntu I have a command pm-suspend, which puts the computer to sleep. It has to be run with sudo. Since it is inconvenient to be forced to type the password every time I want my computer to sleep, I thought maybe there's a way around it. Naively I thought that if I'd create a script as root, that invokes pm-suspend, and then let anyone execute that script, I could run that script as my own user and then that script would be considered run by root and hence be allowed to run pm-suspend. Obviously that didn't work. The root-check procedure in pm-suspend still found out that the original executor was someone different from root.

Still I think something similar (although slightly more elaborate) should work.I'm thinking about the process that allows the user to mount hard drives for example. Normally root is required, but it is somehow bypassed by the gnome utility mounting.

View 8 Replies View Related

General :: How To Allow User To Execute All Commands Without Sudo

Apr 30, 2010

Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute commands...so for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo

Like for instance
Code:
cd /
sudo: cd: command not found

How can I allow a user to execute all commands when a command does not need sudo
Code:
echo -e "Press Control+C to finish"
#echo -e " "
while true;
do
read whichcmd?"Insert Command: "
sudo $whichcmd
done

View 3 Replies View Related

Ubuntu :: Login Password To Be Different Then SUDO Password?

Jun 25, 2010

Is it possible to have your login password t be different then your SUDO password. I did a search on sudo password- Almost every post has the term in it.

View 2 Replies View Related

Ubuntu :: Sudo - Disable Confirmation And Simply Execute Command

Aug 5, 2010

In Ubuntu, When I type sudo and hit enter, the new command will appear on the command line, instead of simply executing. This is different from other operating systems I've used, such as older ubuntu's, mac osx and debian. Is there a way of disabling this confirmation and having it simply execute the command?

View 3 Replies View Related

Ubuntu :: Allow A Specific Group On Machine To Execute One Command With Sudo?

Aug 22, 2011

I'm trying to allow a specific group on my machine to execute one command with sudo without requiring a password, so what I want to do is add something like this to sudoers:

%groupName ALL = (ALL) NOPASSWD: /bin/bash /path/to/shfile.sh argument1 argument2

argument1 needs to be a url : http://subdomain1.subdomain2.domain.com

argument2 needs to be a path of the form /var/www/demo/SomeFolder/application/config/config.php

How do I put in a regex form that sudoers will understand ? I tried reading the sudoers manual, but it didn't help a lot .

View 1 Replies View Related

Debian :: Enabling Autologin In LXDE Not Working

Nov 30, 2015

I'm running Debian + LXDE in a VirtualBox. Here are the details:

Code: Select all➜  ~  hostnamectl
   Static hostname: debian64
         Icon name: computer-vm
           Chassis: vm
        Machine ID: #############################
           Boot ID: ###########################
    Virtualization: kvm
  Operating System: Debian GNU/Linux stretch/sid
            Kernel: Linux 4.2.0-1-amd64
      Architecture: x86-64

I really would like to jump into my desktop environment when I start my machine without the need to enter my user name and password. Apparently this is very easy to do. I added the following lines to my /etc/lightdm/lightdm.conf

Code: Select allpam-service=lightdm
pam-autologin-service=lightdm-autologin
autologin-user=username
autologin-user-timeout=0
session-wrapper=/etc/lightdm/Xsession

And also added my user to the autologin group

Code: Select allgroupadd -r autologin
gpasswd -a username autologin

As you can imagine, it didn't work. Otherwise I wouldn't be here... I also tried to install Slim and enable autologin adding the following line to the /etc/slim.conf

Code: Select allauto_login = yes

That didn't work either!

Am I missing anything? Enabling autologin in LXDE?

View 6 Replies View Related

Debian :: Squeeze And Slim: Autologin / Automatically Log In To X?

Dec 27, 2010

I installed a minimal Debian Squeeze with slim as login manager.

How can I automatically log in to X?

View 1 Replies View Related

General :: Setup A System To Allow Normal Users To Execute A Command Without Using Sudo?

Jan 5, 2011

I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?

View 6 Replies View Related

General :: Can't Execute Commands As Sudo Nor Access Sudoers File In Mandriva 2010.1

Aug 16, 2010

since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.

View 4 Replies View Related

Debian Multimedia :: Autologin With SLiM Display Manager?

Mar 30, 2011

I have already tried editing /etc/slim.conf and making the "Automatically login..." look like this: auto_login yes default_user<username>

BUT nothing I've tried has work.

View 2 Replies View Related

Ubuntu Security :: Sudo Apt-get Update The Update Failed Because The Connection To The India Mirror Timed Out

Jun 1, 2010

I am from India, and I tried to update my Ubuntu system today. Code: $sudo apt-get update The update failed because the connection to the India mirror timed out: Code: [URL] Could not connect to in.archive.ubuntu.com:80 (111.91.91.37). - connect (110: Connection timed out) I tried the update a few times, with the same result every time.

I had firestarter running at this time, and noticed that I would get new security events every time I tried an update. I checked the events list, and it turned out that the machine at the ip address 111.91.91.37 (the in.archive.ubuntu.com machine, to go by the above error message) had been trying to make connections to seemingly random ports on the machine every time I tried the update: see the attached screenshot. I then changed my repositories to the Main Server using Synaptic, and tried the update again (from the command-line). This time it worked without a hitch, and firestarter did not report any unwanted incoming connection. why is the India mirror trying to open connections that the Main server apparently does not need in order for me to do the update? Should I (we) be concerned?

View 3 Replies View Related

Ubuntu Security :: Sudo Update From The Update Manager?

Feb 27, 2010

Just got a sudo update from the update manager-does anyone know what this specific update does?

View 4 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

Jul 2, 2011

I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password

View 8 Replies View Related

General :: Execute Ssh Command Without Password?

Oct 3, 2010

How do I set up SSH so I don't have to type my password? i execute the following command ssh -l admin hostname command but each time i execute it, it ask me to enter password.how i can give it password as default because i'm going to put in bash file ?

View 2 Replies View Related

Ubuntu Security :: Allow ONE Script To Execute With Password

May 12, 2011

I want to a allow a *single* bash script to run with root permissions (without me typing in the password). The script is located in /home/john/Documents/ Eventually the script, will try to execute a program which is located at /home/john/Documents/programs. At the moment, my sudoers file is like this:

[code]...

the line of code root ALL = (ALL:ALL) ALL present in the sudoers file? I mean what does each ALL specifically do? How do I change my sudoers file to accomplish running one single script file?

View 9 Replies View Related

Fedora :: How To SUDO With No Password?

Aug 2, 2010

I made it just like the example in visudo, but every time I exit I get an error: sudoers file: syntax error, line 87 <<<

I have tried it on several machines and always get the same thing, yet it is exactly like the example. Has anyone got an Idea what I am doing wrong ?

View 3 Replies View Related







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