Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
3answers
175 views

Are there any practical reasons for setting a maxlogins limit for users in limits.conf? What are the benefits?

Why should I set a maxlogins limit in /etc/security/limits.conf? In other words, are there any performance-related and security-related benefits to be gained? I have only three users on my machine, ...
1
vote
1answer
190 views

linux/xfce4: How to get rid of “choose session name”?

I've been running xcfe4 for a long time with no problems under linux. Today I was making some changes to grub and doing some reboots to test it. Now, every time I enter my login password via the ...
1
vote
0answers
533 views

Why is there a difference between the last and lastlog command records, and why is there no recent login record for user in lastlog records?

While testing the last command on my system I got the following result and could not make sense of the lines with down and crash at their ends, as all seem to be connected to a tty7 login: george ...
3
votes
1answer
820 views

Is there a way to change the process group of a running process?

Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure.
1
vote
1answer
56 views

Is it possible to log into all 6 terminal sessions at once?

If I press Ctrl+Alt+F1 to switch to the 1st terminal session, I have to give my username and password to log in. If I press Ctrl+Alt+F2, I have to repeat this process. Same for F3, F4, F5, and F6. Is ...
0
votes
2answers
500 views

w command doesn't show all pseudo-terminal sessions

If I open terminal and execute w command then it will show: user tty7 :0 12:04 39:56 36.87s 0.06s /sbin/upstart - Now if open terminator or xterm and execute w command then ...
0
votes
1answer
383 views

How can I launch a new session of tmux in iTerm2 on a separate window?

I would like to start a tmux session on a separate window in iTerm2. Now I'm writing my own configuration script to launch the session. tmux new-session -s dev -n main -d tmux send-keys -t dev "cd $...
3
votes
1answer
296 views

Execute script prior to cinnamon logout (unsing MDM or other display manager)

I'm using cinnamon as desktop environment on my Linux Mint system. I want to automate a backup using unison: Unison shall be executed prior to each logout off my session. So I was looking for a ...
1
vote
1answer
940 views

Is it possible to automate clicks with xdotool to control a different GUI session from the one being currently used?

The xdotool command allows us to create scripts controlling the graphical user interface of the system very easily. I can e.g. open my Chrome browser in the following desktop by executing xdotool ...
1
vote
1answer
2k views

In which file does Chromium store session storage data of the HTML5 webstorage

I am trying to find the file where Chromium stores the session storage. In ~/.config/chromium/Default/Session Storage there are a few files which seem promising: user@desktop-04:~/.config/chromium/...
27
votes
2answers
13k views

tmux session lost in unknown pts, cause and possible solution?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), ...
18
votes
5answers
2k views

Screen, or similar, for automatically resuming a flaky ssh connection

I often have to connect to a server over ssh in an unreliable wifi environment. On the server, I run screen, so if I get disconnected, I can reconnect and resume the screen session, and pick up where ...
6
votes
2answers
8k views

Linux Mint 18.3 Cinnamon cannot start a session

As of today, I cannot login into my account. I start the computer, get to the login screen, login and then this following error appears: Your session only lasted less than 10 seconds, if you... And ...
0
votes
1answer
111 views

When a session leader acquires a controlling terminal, how would the other existing processes in the session also acquire the controlling terminal?

Suppose there is a session with multiple processes in it and without a controlling terminal. When the session leader creates a connection to a controlling terminal, how would the other processes ...
1
vote
2answers
877 views

How to write a systemd user service that requires an active session

I've created a systemd user service to run a duplicity backup job once a day at 17:00 broadly based on an article in Fedora Magazine. I'm running Fedora 28 with the Gnome desktop. My systemd timer ...
1
vote
0answers
80 views

Unable to find tmux session but it shows up as a file?

Yesterday I had started a tmux session, but when I logged into the computer today, I cannot find it, i.e. tmux ls cannot find the session. But when I run top I can see that the following tmux ...
0
votes
1answer
700 views

Save/restore desktop session [closed]

My Linux session got saved somehow and every time I restart, it's restoring the same saved session (a terminal and a particular program). I am not able to find the setting or the saved file to ...
2
votes
1answer
887 views

Running bash -v or bash --v by mistake to know bash version compared to bash -v varname

A few times I mistook bash -v or bash --v to represent bash --version which they do not, as of Bash 4.3.48(1). From man bash, bash -v is equivalent to bash --verbose; although it returns a large ...
9
votes
1answer
5k views

Reopen Terminal windows after restarting

In Mac, if I have a few Terminal windows open and I restart the computer or quit Terminal, the windows that were open last are opened again with their working directories and command histories ...
9
votes
3answers
8k views

Linux Mint 18 with Cinnamon Session Save and Restore

Is there any way to save the position / workspace and possibly state of all of my open programs so that when I restart I can restore everything to exactly where it was before without having to reopen ...
6
votes
3answers
27k views

How does the path environment variable work in Linux?

I'm confused how the PATH environment variable works under Linux. I'm a Linux Mint 15 user. First, I read about editing the /home/.bashrc file and doing a PATH=$PATH:/directory, but I also knew ...
1
vote
2answers
74 views

Can I combine ksh/zsh and other shells with Bash in the same workflow?

Can I combine ksh/zsh and other shells with Bash in the same workflow (shell session)? I am used to Bash but I might need some behavior available either in ksh or zsh. Could I use Bash with them, in ...
10
votes
5answers
2k views

How to detect from script when the user's desktop is loaded?

I have a daemon, implemented in bash and running by means of cron and the @reboot option, that shows the desktop in inactivity. The script is as following (timings are short for testing purposes): #!/...
1
vote
1answer
768 views

`sudo setsid command` does not spawn new process group?

I am looking at a scenario where I want to run a program / command with sudo as part of a software test. The commands are launched from a Python script based on the subprocess module. I am attempting ...
3
votes
0answers
317 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
0
votes
1answer
374 views

Echo something from a tmux session to base session

I have a script with this code: #!/bin/bash tmux new-session -d bash sleep 1d echo 1 day passed tmux kill-session AFAIU, the echo will appear after 24 hours in the tmux session's stdout ...
0
votes
1answer
36 views

Does each process in a session get its input from and send its output to the terminal the session is connected to?

This tutorial says the following: Every session is tied to a terminal from which processes in the session get their input and to which they send their output. I think that this statement is ...
0
votes
1answer
266 views

Using session command from a cron job (linux)

I need to be able to start a named "session" from within a cron job and run a job within that named session. The job I need to run MAY cause my appliance to not run properly if problem exist and I ...
1
vote
1answer
4k views

How to restore window manager to default?

I wanted to create a kiosk Ubuntu, then I followed this instruction: https://web.archive.org/web/20131210161955/http://phunehehe.is-great.org/2010/run-linux-with-a-bare-window-manager/ Add a custom ...
0
votes
1answer
50 views

How can I connect to remote session and get the server output on my local

So I have a remote server in cloud running my application, when I need to test / soak test I run ./gradlew- on my local. which runs a script > connect to vm - my application > and start the test on my ...
0
votes
1answer
29 views

Desktop not being picked up [closed]

I wanted to configure a Cinnamon desktop that used optirun so I created a new .desktop file in /usr/share/xsessions. However, this option is not being shown as a desktop on the login screen. I've ...
1
vote
1answer
31 views

How to apply usergroup changes without having to end session / logging out / closing programs?

I'd like to remove myself from usergroups via deluser username group-to-get-removed-from without having to log out and back in as most programs get closed when doing so. Is there a way to apply ...
4
votes
1answer
1k views

How to see what's in a session

I'm seeing a lot of messages like this in syslog Aug 31 16:28:38 server systemd[1]: Started Session c924093 of user buntu. Aug 31 16:28:40 server systemd[1]: Started ...
0
votes
1answer
156 views

Do all the jobs in a bash shell exactly form a session?

Process, process group, and (process group) session are concepts of Linux. If I am correct, in a bash shell, the process groups started in it are called jobs. Do all the jobs started in a bash shell ...
4
votes
3answers
8k views

Determine the owner of the session of a process

I am trying to implement a way to determine which user is owner of some process's session, in a way that's as cross-platform as possible. In Linux I can trace the process's pty by following the link /...
0
votes
1answer
2k views

How to Set MaxSessions parmeter in sshd_config

When I set MaxSessions flag to 1, I can have multiple sessions via ssh connection and set it to 2 or more has no effect as well then. If i set MaxSessions flag as 1, there should be allow only one ...
4
votes
3answers
7k views

How to find the machine from which a user logged into current machine using ssh?

In a multi server architecture, is it possible to find out from which machine a user logged into current machine using ssh? For example, user1 logged into host1. From there, the user logged into ...
0
votes
2answers
515 views

Apache won't start

I'm using CentOS 7 and I migrated website from php4 to php5 and I have in configuration file of Apache this between virtualhost: Options Indexes FollowSymLinks MultiViews AllowOverride all Order ...
0
votes
2answers
3k views

exit ssh and still have a command running? [duplicate]

I am running a command on a server. It comes with this library http://www.graphicsmagick.org/. Basically I have a for loop that does image procession on a lot of files. Command runs for hours and ...
2
votes
1answer
184 views

How to automate desktop setup when starting up?

I've set up my Linux laptop (running Pixel for x86, based on Debian) to have three 'desktops'. I can access these with ctrl-alt-left and right. Main - a blank desktop CLI - a full screen, with no ...
1
vote
1answer
334 views

How can I print output whilst detached from controlling terminal?

The obvious answer is that I cannot print output to the terminal if I have detached from it. The problem is that I actually can send characters to a terminal from which I detached and these ...
1
vote
1answer
717 views

How to account for shell-session env vars, contexts with chroot

So I'm working a script let's call it chroot-session-builder that mounts a file-system with a separate OS, and then logs me into a chrooted shell in the other file system. It works, but I'm a jerk and ...
0
votes
0answers
228 views

Kill ssh session in screen from client side

I connected to an SSH server and left a script running using screen. After that, I logged out. Now, about 10 hours later and after a reboot of the client, I can't connect to the server anymore. After ...
1
vote
1answer
111 views

Opening terminal tabs through SSH

I am connecting to a linux machine exclusively over SSH. Recently I noticed that no matter what process is running in terminal, every time I close and reconnect through SSH the process may or may not ...
2
votes
2answers
8k views

Start terminal on Debian login

I am able to login automatically into Debian. I changed the /etc/gdm3daemon.conf file to do so. What I'm having trouble doing now is getting the terminal window to appear after the login. I need to ...
17
votes
2answers
5k views

Concept of controlling terminal in Unix

Can some one please explain in an easy to understand way the concept of controlling terminal in unix and unix like systems ? Is it related to a session ? If yes, then how ?
2
votes
0answers
37 views

How can I set different sessions to be used for different users?

Is it possible to write a script that runs at login which will automatically run a custom session for a given user? I would like to have my personal user account login to my normal, entire KDE desktop,...
64
votes
4answers
267k views

Keeping a process running after PuTTY or terminal has been closed [duplicate]

I'm running a Node.js server off of a Raspbian (Debian) machine, and I'd like to start and stop the server remotely. This for me means using PuTTY to access the shell, except when I close out of the ...
1
vote
1answer
5k views

Detach all other terminals except current one from a tmux session

Is there a way to detach all terminals from a running tmux session, except the one i'm actually using? It seems a little weird, but the meaning of doing this is to keep some "persistency" layer to ...
4
votes
5answers
10k views

Linux Mint 17, your session lasted less than 10 seconds?

I get this message when I try to log in. /etc/mdm/Xsession: Beginning session setup... /etc/mdm/Xsession: 1: /etc/profile: id: not found /etc/mdm/Xsession: 12: [: Illegal number: /etc/mdm/Xsession: ...