How Do you Login to Root

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Crusty

Lifer
Sep 30, 2001
12,684
2
81
if you have it installed, then assuming you have installed it right you should be able to edit your /etc/samba/smb.conf file to add network shares.

head on over to samba.org and read their documentation.

Come back once you have at least attempted to get a share working.
 

0rion

Member
Aug 6, 2003
30
0
0
I have started to read Some Samba doc but, I think my problem is with LISa daemon, for that is what the Error says. Can you just tell me how to install that becouse it says that is not installed?
 

0rion

Member
Aug 6, 2003
30
0
0
yes i have, i can transfer files to a nother box but when i go to LAN Browser (to find my other box) and type lan://mshome/ is when i get the error
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

Hrmm...I didn't know that...

is it really that usefull?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: MCrusty
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

Hrmm...I didn't know that...

is it really that usefull?

Sometimes. I needed to do it for a while and just got in the habit of adding the -.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Originally posted by: n0cmonkey
Originally posted by: MCrusty
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

Hrmm...I didn't know that...

is it really that usefull?

Sometimes. I needed to do it for a while and just got in the habit of adding the -.

Heh, well if something ever acts fishy after I su i'll try and remember that
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Originally posted by: 0rion
Thanx, but that is not realy what I was looking for, I need to chang to Root in KDE. In the login only my user name is there.

NEVER, AND I MEAN NEVER LOG IN AS ROOT IN KDE. There's no reason to do it. You are putting the security of your system at risk when you do something like that. I would suggest you read a good book about linux, and you will understand many of use tell you not to log in as root in kde.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

what kinds of benefits do you get by doing this? What kinds of advantages does it have?

Thanks,
pitupepito
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: pitupepito2000
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

what kinds of benefits do you get by doing this? What kinds of advantages does it have?

Thanks,
pitupepito

su(1):
- Same as the -l option (deprecated).

-l Simulate a full login. The environment is discarded except for
HOME, SHELL, PATH, TERM, LOGNAME, and USER. HOME and SHELL are
modified as above. LOGNAME and USER are set to the target login.
PATH is set to the value specified by the ``path'' entry in
login.conf(5). TERM is imported from your current environment.
The invoked shell is the target login's, and su will change di-
rectory to the target login's home directory.
 

MonstaThrilla

Golden Member
Sep 16, 2000
1,652
0
0
Originally posted by: pitupepito2000
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

what kinds of benefits do you get by doing this? What kinds of advantages does it have?

Thanks,
pitupepito

I use 'su -' instead of 'su' because it puts the /sbin directory in my path (very helpful when doing admin work). On the downside, it cd's you into root's home (usually /root), so you'll have to cd back to where you were working if you found out you needed root access for a certain file/executable. This can all be changed of course by tweaking the environment variables.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: MonstaThrilla
Originally posted by: pitupepito2000
Originally posted by: Nothinman
type 'su -' instead of just 'su', the dash resets your environment so the shell will use root's environment instead of your own.

what kinds of benefits do you get by doing this? What kinds of advantages does it have?

Thanks,
pitupepito

I use 'su -' instead of 'su' because it puts the /sbin directory in my path (very helpful when doing admin work). On the downside, it cd's you into root's home (usually /root), so you'll have to cd back to where you were working if you found out you needed root access for a certain file/executable. This can all be changed of course by tweaking the environment variables.

I'd kill lots of things if /sbin wasn't in my $PATH.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
what kinds of benefits do you get by doing this? What kinds of advantages does it have?

Basically it sets up your PATH and anything else set in root's shell 'dot' files (custom aliases, shell settings, etc). If you put /sbin and /usr/sbin in the global PATH via something like /etc/profile it's probably not a big deal.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: n0cmonkey
I'd kill lots of things if /sbin wasn't in my $PATH.

Yeah, I don't really understand why people would prefer it that way. It (/sbin *not* being in $PATH) seems to generally be the default on linux, or at least debian.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |