Jump to content

Xubuntu question

Go to solution Solved by MikeD,

'$ sudo visudo' (or '$ sudo EDITOR=/bin/nano visudo' if you don't like vim)

Add a line like

'Defaults timestamp_timeout=<minutes>'

 

If you are talking about how long the passwd prompt waits for then it's

'Defaults passwd_timeout=<minutes>'

 

From 'man sudoers':

passwd_timeout    Number of minutes before the sudo password prompt times                       out, or 0 for no timeout.  The timeout may include a                       fractional component if minute granularity is insuffi‐                       cient, for example 2.5.  The default is 0.timestamp_timeout                       Number of minutes that can elapse before sudo will ask                       for a passwd again.  The timeout may include a frac‐                       tional component if minute granularity is insufficient,                       for example 2.5.  The default is 15.  Set this to 0 to                       always prompt for a password.  If set to a value less                       than 0 the user's time stamp will never expire.  This                       can be used to allow users to create or delete their                       own time stamps via “sudo -v” and “sudo -k” respec‐                       tively.

So I installed Xubuntu 12.04 on my mom's netbook, since her Windows 7 install went to crap. I was curious on how to change how long it takes for the password to time out. Those of you who use Ubuntu know what I'm talking about, like when you install a program.

Main rig on profile

VAULT - File Server

Spoiler

Intel Core i5 11400 w/ Shadow Rock LP, 2x16GB SP GAMING 3200MHz CL16, ASUS PRIME Z590-A, 2x LSI 9211-8i, Fractal Define 7, 256GB Team MP33, 3x 6TB WD Red Pro (general storage), 5x 8TB WD White Label/Red (Plex) (both arrays in their respective Windows Parity storage spaces), 1TB Teamgroup MP33 (dumping ground) Corsair RM750x, TrueNAS Scale

Sleeper HP Pavilion A6137C

Spoiler

Intel Core i7 6700K @ 4.4GHz, 4x8GB G.SKILL Ares 1800MHz CL10, ASUS Z170M-E D3, 128GB Team MP33, 1TB Seagate Barracuda, MSI GTX 970 100ME, EVGA 650G1, Windows 11 Pro

OptiPlex 7040M

Spoiler

Intel Core i7 6700, 2x16GB Mushkin Redline (stuck at 2133MHz CL13), 240GB Corsair MP510, 2TB Seagate Barracuda 2.5", 130w Dell power brick, Windows 11 Pro

Mac Mini (Late 2020)

Spoiler

Apple M1, 8GB RAM, 256GB, macOS Sonoma

Consoles: Steam Deck LCD (512GB), Softmodded 1.4 Xbox w/ 500GB HDD, Xbox 360 Elite 120GB Falcon, XB1X w/2TB MX500, Xbox Series X, PS1 1001, PS2 Slim 70000 w/ FreeMcBoot, PS4 Pro 7015B 1TB, PS5 Digital, Nintendo Switch OLED, Nintendo Wii RVL-001 (black)

Link to comment
https://linustechtips.com/topic/104037-xubuntu-question/
Share on other sites

Link to post
Share on other sites

What, are you talking about giving applications root access?

No, I was talking about how long it took for the password to time out, like when you install an application or do a sudo command in the terminal.

Main rig on profile

VAULT - File Server

Spoiler

Intel Core i5 11400 w/ Shadow Rock LP, 2x16GB SP GAMING 3200MHz CL16, ASUS PRIME Z590-A, 2x LSI 9211-8i, Fractal Define 7, 256GB Team MP33, 3x 6TB WD Red Pro (general storage), 5x 8TB WD White Label/Red (Plex) (both arrays in their respective Windows Parity storage spaces), 1TB Teamgroup MP33 (dumping ground) Corsair RM750x, TrueNAS Scale

Sleeper HP Pavilion A6137C

Spoiler

Intel Core i7 6700K @ 4.4GHz, 4x8GB G.SKILL Ares 1800MHz CL10, ASUS Z170M-E D3, 128GB Team MP33, 1TB Seagate Barracuda, MSI GTX 970 100ME, EVGA 650G1, Windows 11 Pro

OptiPlex 7040M

Spoiler

Intel Core i7 6700, 2x16GB Mushkin Redline (stuck at 2133MHz CL13), 240GB Corsair MP510, 2TB Seagate Barracuda 2.5", 130w Dell power brick, Windows 11 Pro

Mac Mini (Late 2020)

Spoiler

Apple M1, 8GB RAM, 256GB, macOS Sonoma

Consoles: Steam Deck LCD (512GB), Softmodded 1.4 Xbox w/ 500GB HDD, Xbox 360 Elite 120GB Falcon, XB1X w/2TB MX500, Xbox Series X, PS1 1001, PS2 Slim 70000 w/ FreeMcBoot, PS4 Pro 7015B 1TB, PS5 Digital, Nintendo Switch OLED, Nintendo Wii RVL-001 (black)

Link to comment
https://linustechtips.com/topic/104037-xubuntu-question/#findComment-1391533
Share on other sites

Link to post
Share on other sites

'$ sudo visudo' (or '$ sudo EDITOR=/bin/nano visudo' if you don't like vim)

Add a line like

'Defaults timestamp_timeout=<minutes>'

 

If you are talking about how long the passwd prompt waits for then it's

'Defaults passwd_timeout=<minutes>'

 

From 'man sudoers':

passwd_timeout    Number of minutes before the sudo password prompt times                       out, or 0 for no timeout.  The timeout may include a                       fractional component if minute granularity is insuffi‐                       cient, for example 2.5.  The default is 0.timestamp_timeout                       Number of minutes that can elapse before sudo will ask                       for a passwd again.  The timeout may include a frac‐                       tional component if minute granularity is insufficient,                       for example 2.5.  The default is 15.  Set this to 0 to                       always prompt for a password.  If set to a value less                       than 0 the user's time stamp will never expire.  This                       can be used to allow users to create or delete their                       own time stamps via “sudo -v” and “sudo -k” respec‐                       tively.
Link to comment
https://linustechtips.com/topic/104037-xubuntu-question/#findComment-1391617
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×