/ holds a /home incorrectly. sudo su not working

New to Debian (Or Linux in general)? Ask your questions here!

/ holds a /home incorrectly. sudo su not working

Postby JeSuisFlaneur » 2020-06-09 19:18

/ holds /home although there is a /home in the tree.

I tried to shift-del the / directory called home. I have insufficient permissions.

I tried the extra password for sudo su and sudo su - and neither take me to

root@lexington:

How can I remove the /home from root?
JeSuisFlaneur
 
Posts: 38
Joined: 2019-08-28 16:00

Re: / holds a /home incorrectly. sudo su not working

Postby RU55EL » 2020-06-09 21:59

JeSuisFlaneur wrote:/ holds /home although there is a /home in the tree.


"/home" is normally a sub-directory of the root directory "/".

JeSuisFlaneur wrote:I tried to shift-del the / directory called home. I have insufficient permissions.


I'm sorry, I don't understand this. What is shift-del the / directory called home? My first guess is that you were trying to delete the /home directory. Is that correct? If so, why?

JeSuisFlaneur wrote:I tried the extra password for sudo su and sudo su - and neither take me to

root@lexington:


Extra password? When using sudo, you normally use your standard user password. Did you set up a root password when you installed Debian? Can you log in as root?

JeSuisFlaneur wrote:How can I remove the /home from root?


Why do you want to do this? "Home" is kind of important.
User avatar
RU55EL
 
Posts: 443
Joined: 2014-04-07 03:42
Location: /home/russel

Re: / holds a /home incorrectly. sudo su not working

Postby cuckooflew » 2020-06-10 00:24

I think the OP needs to re-think the question,and try to ask it better, as it is it does not make any sense to me either.
"sudo su ", what is that supposed to do ?
Then :
JeSuisFlaneur wrote:
I tried to shift-del the / directory called home. I have insufficient permissions.

I don't know what you mean here, but I suspect it is a good thing you do not have permission.
JeSuisFlaneur wrote:
I tried the extra password for sudo su and sudo su - and neither take me to

root@lexington:

Let's start here, To start with ,...you do not use : "sudo su" , that is just silly,... you can login as root, or get root privileges by using :
Code: Select all
$su -
$ password: (enter the root password)
#

If you have the # , that means you are root , but you can make sure by using the 'whoami' command, type :
Code: Select all
#whoami
#root
it should say root, or root@thishost,... something to that extent.
The other method, using "sudo",
Code: Select all
$sudo <followed by the command you want>

And you will be prompted for your password. Type it in.
I can not say what the command should be, since it is not clear what you are trying to do.
JeSuisFlaneur wrote:
How can I remove the /home from root?

The /home directory probably has some sub directories, at least 1 user (you) , and possibly others, Are you really sure you want to do that ? If so , see these:
Code: Select all
$man rm
Or
man rmdir

If you know how to write a path correctly, and use the "code boxes". maybe , please show us exactly what directory you want to delete or remove, and the complete path to it,.
EG:
Code: Select all
/home/joe
I want to remove the joe directory,or I want to remove the /home, and all the subdirectories,...
How can I remove the /home from root?
On my Debian 10 system there is no home directory, in the /root directory, and they /home directory has several subdirectories, eg:
/home/cuckoo, /home/papaparrot, /home/andrea, /home/sylvia , There are more users, each one has a directory, to remove the /home directory recursively would remove all those users as well, ...so you see, you really need to clarify about this, ...good luck
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west

Re: / holds a /home incorrectly. sudo su not working

Postby cuckooflew » 2020-06-10 00:27

This might be of interest to the OP, but please DO NOT run any of the commands they show, ask us here first.
https://superuser.com/questions/542978/is-it-possible-to-remove-the-root-directory
Yes it is possible, but probably you do not really want to.
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west

Re: / holds a /home incorrectly. sudo su not working

Postby reinob » 2020-06-10 09:48

cuckooflew wrote:This might be of interest to the OP, but please DO NOT run any of the commands they show, ask us here first.
https://superuser.com/questions/542978/is-it-possible-to-remove-the-root-directory
Yes it is possible, but probably you do not really want to.


I think he just wants to delete the (empty) /home at /. His real /home is in another partition and mounted at root's /home.

However, deleting the mount point will effectively prevent you from mounting the actual /home, so it's kinda like shooting yourself in the foot.

What you *might* want to be attempting is to clean-up the /home in the root partition, i.e. files which may have been stored there before the actual /home was mounted over it.

You can do that easily by bind-mounting / somewhere else, so you have a clear "view" of the actual /.
reinob
 
Posts: 785
Joined: 2014-06-30 11:42

Re: / holds a /home incorrectly. sudo su not working

Postby cuckooflew » 2020-06-10 14:03

I think he just wants to delete the (empty) /home at /. His real /home is in another partition and mounted at root's /home.

That MIGHT be what they want to do as well, but this is the problem, the OP just is not at all clear about what they want to do and why. I think it may be a language problem , maybe if they tell us what language , we can direct them to a mail list in thier own language, it would make it easier for them.
Thanks, ahh, in any event, the 'man rm' or 'man rmdir' does explain how to remove a empty directory as well as directories that have sub directories.
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable