Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-10-2017, 08:00 AM
|
#16
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
more:
when in DVD OS
just mount whatever your partition is that you are going to put home on in your /tmp ogg the DVD os.
Code:
sudo mkdir -pv /tmp/home/username
or
sudo mkdir -v /tmp/home
that all depending on how you want to handle adding a user, and
the -p is just to make more than one directory at a time.
then as you see root owns home or 0755 but root cteation of home and leave it alone - I'll never had any issues in doing it that way.
Code:
userx%voider ⚡ ~ ⚡> ls -la /home
total 40
drwxr-xr-x 7 root root 4096 Jun 30 09:49 .
drwxr-xr-x 17 root root 4096 Apr 26 09:00 ..
drwxr-xr-x 2 root root 4096 Apr 20 17:57 ftp
drwx------ 2 root root 16384 Mar 4 07:56 lost+found
drwx--x--x 27 1001 users 4096 Jul 7 08:14 surooterdude
drwx--x--x 44 userx users 4096 Jul 10 07:28 userx
drwx--x--x 50 userx users 4096 Jun 19 15:53 userx-bk
it is the user and own his own 'home' under /home that needs to be sure it has proper UID. If you did not or do not delete that user prior to doing all of this then it is a changing permissions that may need to be done on that /home/USER directory that maybe needed.
Last edited by BW-userx; 07-10-2017 at 08:05 AM.
|
|
|
07-10-2017, 08:06 AM
|
#17
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by abo sal
BW-userx
windows is in (sda1). but I can log to the root using recovery or alt+ ctr l F1.
|
then this is bad information
Code:
/root /dev/sda1 <-- linux is root not windows
/home /dev/sda2
/swap /dev/sda3 <-- same as
NTFS /dev/sda3 <-- this
which I already pointed out the sda3 thing
regardless all of the steps are the same it is just the partitions numbering that changes is all.
Last edited by BW-userx; 07-10-2017 at 08:08 AM.
|
|
|
07-10-2017, 08:09 AM
|
#18
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,866
|
<username> is the name of the user's folder in /home, usually the same name as the user's login name. Then you will have to use chown command to change ownership of the folder to the user.
Last edited by colorpurple21859; 07-10-2017 at 09:17 AM.
|
|
|
07-10-2017, 08:13 AM
|
#19
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
more thoughts..
if you do not have your Linux split into two seleprate / and /home then you cannot delete /home and expect your Linux OS to still be there. as you have not provided proper information on how you HDD is really split up and used I cannot give you exact how to's
copy paste the results of that back so everyone can see what is really going on. thank you.
it should look something like this. as this is what is really needed.
Code:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sda2 1028160 204902463 203874304 97.2G 7 HPFS/NTFS/exFAT
/dev/sda3 204906496 205828095 921600 450M 27 Hidden NTFS WinRE
/dev/sda4 205828096 488397167 282569072 134.8G 5 Extended
/dev/sda5 205830144 249968639 44138496 21G 83 Linux
/dev/sda6 249970688 303507455 53536768 25.5G 83 Linux
/dev/sda7 303509504 488396799 184887296 88.2G 83 Linux
Last edited by BW-userx; 07-10-2017 at 08:14 AM.
|
|
|
07-10-2017, 09:33 AM
|
#20
|
LQ Newbie
Registered: May 2017
Location: KSA
Distribution: ubuntu 14.4
Posts: 9
Original Poster
Rep: 
|
BW-userx
I logged to the root ( using name and password of the administrator)
then cd ect
wrote
nano fstab
edited fstab couldn't save fstab (permission problem).
|
|
|
07-10-2017, 09:51 AM
|
#21
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by abo sal
BW-userx
I logged to the root ( using name and password of the administrator)
then cd ect
wrote
nano fstab
edited fstab couldn't save fstab (permission problem).
|
that is strange indeed. you are using LINUX to do this?
if you're root then you should not be having any problems. I do this all of the time, or have with my dual boot, whenever I screw up something by forgetting to do it right - I just boot into my other linux mount make needed changes to fix it using su or sudo no problems.
but this is Ubutututu and in my option are a screwed up OS due to how they control root account.
by rights you should be able to just be in root and do whatever to whatever because it is root.
you must have missed something,
try using sudo regardless where you're logged into. or 'whoami' to be sure your root.
Code:
good morning userx
userx%voider ⚡ ~ ⚡> whoami
userx
userx%voider ⚡ ~ ⚡> su
Password:
(root@voider⚡️/home/userx)>># whoami
root
(root@voider⚡️/home/userx)>>#
|
|
|
All times are GMT -5. The time now is 11:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|