Removing rstudio and its user from the system












1















I installed rstudio on my system, but I don't need it now. It has created its own user. Whenever I turn my system on, two users appear on the screen. This has happened only after installing rstudio. I don't want rstudio and its user as well.



I successfully uninstalled rstudio by sudo apt-get purge rstudio.



Still the login page is showing two users. Then I logged in to the second "rstudio" user and opened its terminal.



When I used deluser command there, I got this error.



rstudio@ubuntu-Vostro-15-3568:~$ sudo deluser
rstudio is not in the sudoers file. This incident will be reported.



Please help me to delete this user.










share|improve this question




















  • 3





    How exactly did you install it?

    – steeldriver
    Jan 4 at 4:42











  • Via terminal. sudo apt -y install r-base

    – Niranjan
    Jan 4 at 5:05











  • Did you try uninstalling the same way? sudo apt remove r-base

    – user535733
    Jan 4 at 5:25











  • Highly unlikely this added a user!

    – vanadium
    Jan 4 at 7:49











  • @vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

    – Niranjan
    Jan 4 at 7:55
















1















I installed rstudio on my system, but I don't need it now. It has created its own user. Whenever I turn my system on, two users appear on the screen. This has happened only after installing rstudio. I don't want rstudio and its user as well.



I successfully uninstalled rstudio by sudo apt-get purge rstudio.



Still the login page is showing two users. Then I logged in to the second "rstudio" user and opened its terminal.



When I used deluser command there, I got this error.



rstudio@ubuntu-Vostro-15-3568:~$ sudo deluser
rstudio is not in the sudoers file. This incident will be reported.



Please help me to delete this user.










share|improve this question




















  • 3





    How exactly did you install it?

    – steeldriver
    Jan 4 at 4:42











  • Via terminal. sudo apt -y install r-base

    – Niranjan
    Jan 4 at 5:05











  • Did you try uninstalling the same way? sudo apt remove r-base

    – user535733
    Jan 4 at 5:25











  • Highly unlikely this added a user!

    – vanadium
    Jan 4 at 7:49











  • @vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

    – Niranjan
    Jan 4 at 7:55














1












1








1


1






I installed rstudio on my system, but I don't need it now. It has created its own user. Whenever I turn my system on, two users appear on the screen. This has happened only after installing rstudio. I don't want rstudio and its user as well.



I successfully uninstalled rstudio by sudo apt-get purge rstudio.



Still the login page is showing two users. Then I logged in to the second "rstudio" user and opened its terminal.



When I used deluser command there, I got this error.



rstudio@ubuntu-Vostro-15-3568:~$ sudo deluser
rstudio is not in the sudoers file. This incident will be reported.



Please help me to delete this user.










share|improve this question
















I installed rstudio on my system, but I don't need it now. It has created its own user. Whenever I turn my system on, two users appear on the screen. This has happened only after installing rstudio. I don't want rstudio and its user as well.



I successfully uninstalled rstudio by sudo apt-get purge rstudio.



Still the login page is showing two users. Then I logged in to the second "rstudio" user and opened its terminal.



When I used deluser command there, I got this error.



rstudio@ubuntu-Vostro-15-3568:~$ sudo deluser
rstudio is not in the sudoers file. This incident will be reported.



Please help me to delete this user.







sudo rstudio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 9:50









SurvivalMachine

1,3013717




1,3013717










asked Jan 4 at 4:36









NiranjanNiranjan

184




184








  • 3





    How exactly did you install it?

    – steeldriver
    Jan 4 at 4:42











  • Via terminal. sudo apt -y install r-base

    – Niranjan
    Jan 4 at 5:05











  • Did you try uninstalling the same way? sudo apt remove r-base

    – user535733
    Jan 4 at 5:25











  • Highly unlikely this added a user!

    – vanadium
    Jan 4 at 7:49











  • @vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

    – Niranjan
    Jan 4 at 7:55














  • 3





    How exactly did you install it?

    – steeldriver
    Jan 4 at 4:42











  • Via terminal. sudo apt -y install r-base

    – Niranjan
    Jan 4 at 5:05











  • Did you try uninstalling the same way? sudo apt remove r-base

    – user535733
    Jan 4 at 5:25











  • Highly unlikely this added a user!

    – vanadium
    Jan 4 at 7:49











  • @vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

    – Niranjan
    Jan 4 at 7:55








3




3





How exactly did you install it?

– steeldriver
Jan 4 at 4:42





How exactly did you install it?

– steeldriver
Jan 4 at 4:42













Via terminal. sudo apt -y install r-base

– Niranjan
Jan 4 at 5:05





Via terminal. sudo apt -y install r-base

– Niranjan
Jan 4 at 5:05













Did you try uninstalling the same way? sudo apt remove r-base

– user535733
Jan 4 at 5:25





Did you try uninstalling the same way? sudo apt remove r-base

– user535733
Jan 4 at 5:25













Highly unlikely this added a user!

– vanadium
Jan 4 at 7:49





Highly unlikely this added a user!

– vanadium
Jan 4 at 7:49













@vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

– Niranjan
Jan 4 at 7:55





@vanadium you are right. Actually immediately after it I installed rstudio, which created a user. Kindly read my edited question.

– Niranjan
Jan 4 at 7:55










2 Answers
2






active

oldest

votes


















0














Thank you so much everyone for your efforts.
I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working.
I simply used
sudo deluser rstudio
and I got this!



Removing user 'rstudio' ...
Warning: group 'rstudio' has no more members.
Done.



Now everything is fine. :)






share|improve this answer



















  • 1





    Also remove the group rstudio.

    – vanadium
    Jan 4 at 14:28



















0














Use sudo apt-get purge r-base.

This works like apt remove but also deletes configuration files.



After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio

This will remove the system user created by the installer, which is not automatically removed by the uninstaller.






share|improve this answer


























  • R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

    – Niranjan
    Jan 4 at 6:34













  • deluser doesn't exists, what OS is this?

    – George Udosen
    Jan 4 at 7:07











  • It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

    – Niranjan
    Jan 4 at 7:22













  • @GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

    – MTippetts
    Jan 4 at 23:39











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106804%2fremoving-rstudio-and-its-user-from-the-system%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Thank you so much everyone for your efforts.
I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working.
I simply used
sudo deluser rstudio
and I got this!



Removing user 'rstudio' ...
Warning: group 'rstudio' has no more members.
Done.



Now everything is fine. :)






share|improve this answer



















  • 1





    Also remove the group rstudio.

    – vanadium
    Jan 4 at 14:28
















0














Thank you so much everyone for your efforts.
I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working.
I simply used
sudo deluser rstudio
and I got this!



Removing user 'rstudio' ...
Warning: group 'rstudio' has no more members.
Done.



Now everything is fine. :)






share|improve this answer



















  • 1





    Also remove the group rstudio.

    – vanadium
    Jan 4 at 14:28














0












0








0







Thank you so much everyone for your efforts.
I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working.
I simply used
sudo deluser rstudio
and I got this!



Removing user 'rstudio' ...
Warning: group 'rstudio' has no more members.
Done.



Now everything is fine. :)






share|improve this answer













Thank you so much everyone for your efforts.
I was putting username when I was asked for user. I checked the command that I used to add the user. ie.
sudo adduser rstudio
As I was putting the user"name" in the command, it wasn't working.
I simply used
sudo deluser rstudio
and I got this!



Removing user 'rstudio' ...
Warning: group 'rstudio' has no more members.
Done.



Now everything is fine. :)







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 4 at 10:10









NiranjanNiranjan

184




184








  • 1





    Also remove the group rstudio.

    – vanadium
    Jan 4 at 14:28














  • 1





    Also remove the group rstudio.

    – vanadium
    Jan 4 at 14:28








1




1





Also remove the group rstudio.

– vanadium
Jan 4 at 14:28





Also remove the group rstudio.

– vanadium
Jan 4 at 14:28













0














Use sudo apt-get purge r-base.

This works like apt remove but also deletes configuration files.



After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio

This will remove the system user created by the installer, which is not automatically removed by the uninstaller.






share|improve this answer


























  • R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

    – Niranjan
    Jan 4 at 6:34













  • deluser doesn't exists, what OS is this?

    – George Udosen
    Jan 4 at 7:07











  • It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

    – Niranjan
    Jan 4 at 7:22













  • @GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

    – MTippetts
    Jan 4 at 23:39
















0














Use sudo apt-get purge r-base.

This works like apt remove but also deletes configuration files.



After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio

This will remove the system user created by the installer, which is not automatically removed by the uninstaller.






share|improve this answer


























  • R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

    – Niranjan
    Jan 4 at 6:34













  • deluser doesn't exists, what OS is this?

    – George Udosen
    Jan 4 at 7:07











  • It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

    – Niranjan
    Jan 4 at 7:22













  • @GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

    – MTippetts
    Jan 4 at 23:39














0












0








0







Use sudo apt-get purge r-base.

This works like apt remove but also deletes configuration files.



After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio

This will remove the system user created by the installer, which is not automatically removed by the uninstaller.






share|improve this answer















Use sudo apt-get purge r-base.

This works like apt remove but also deletes configuration files.



After that, issue the following commands:
sudo deluser --remove-all-files rstudio
sudo deluser --group --remove-all-files rstudio

This will remove the system user created by the installer, which is not automatically removed by the uninstaller.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 4 at 23:47

























answered Jan 4 at 5:34









MTippettsMTippetts

94117




94117













  • R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

    – Niranjan
    Jan 4 at 6:34













  • deluser doesn't exists, what OS is this?

    – George Udosen
    Jan 4 at 7:07











  • It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

    – Niranjan
    Jan 4 at 7:22













  • @GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

    – MTippetts
    Jan 4 at 23:39



















  • R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

    – Niranjan
    Jan 4 at 6:34













  • deluser doesn't exists, what OS is this?

    – George Udosen
    Jan 4 at 7:07











  • It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

    – Niranjan
    Jan 4 at 7:22













  • @GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

    – MTippetts
    Jan 4 at 23:39

















R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

– Niranjan
Jan 4 at 6:34







R was successfully uninstalled, but the username still appears. Terminal shows this error = /usr/sbin/deluser: The user `Niranjan' does not exist.

– Niranjan
Jan 4 at 6:34















deluser doesn't exists, what OS is this?

– George Udosen
Jan 4 at 7:07





deluser doesn't exists, what OS is this?

– George Udosen
Jan 4 at 7:07













It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

– Niranjan
Jan 4 at 7:22







It says user that I mentioned doesn't exist. My OS is ubuntu 18.04. I use xfce4 desktop environment.

– Niranjan
Jan 4 at 7:22















@GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

– MTippetts
Jan 4 at 23:39





@GeorgeUdosen deluser is a wrapper around userdel on Debian-based distributions of Linux, including Ubuntu. If you're using Ubuntu -- or any distro based thereon -- and somehow deluser is missing, you can install it with sudo apt-get install adduser. If you're not using Ubuntu, answers in Ask Ubuntu may not apply to your situation. ;-)

– MTippetts
Jan 4 at 23:39


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106804%2fremoving-rstudio-and-its-user-from-the-system%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Questions related to Moebius Transform of Characteristic Function of the Primes

List of scandals in India

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?