LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-11-2002, 09:24 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
How to set up access right easily


Coming from windows and using Mandrake 8.1 (also trying SuSe 6.4 for some time) on my home machine I always started Linux and KDE as root user. (Mandy 8.1 and KDE 2.2 are really great)
To increase security, now I tried to log in on my user account, but I could not run any binaries in the /usr/bin directory and elsewhere.
My questions are:
- what is the simplest way to grant an account the run privileges for most of the applications needed for the daily work? Do I have to install all binaries into my home directory?
- how can I make the destop I created as root available to my user account?
- I read somewhere that dial-up internet connections are only accessible for the root user by default. Is that so? Can I make it available to a user account? How?

Thank you in advance.
 
Old 02-11-2002, 09:58 AM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
stuff like dial-up accounts can be made universally accessible by seting the uid to root - that means that the program executes with root privledges regardless of who calls the prog. you can set the uid to root using

chmod a+s progname

...i think that's right - the important parameter is the 's' - if i got them wrong, someone correct me!
that's the easy way to do it. the right way to do it is to use groups - have a group named "dialout" or "modem" or something like that, and give the group executable privledges to the file, but not normal users. you'll need to read up on groups a bit more to do that tho.

you can alter the executable bit on any other prog also using chmod - like this

chmod a+x progname

the "a" stands for "all users" - the other common parameters in chmod are r and w, for read and write. using

chmod a+rwx progname

gives all users complete access to a file: read, write, and execute.
 
Old 02-11-2002, 12:36 PM   #3
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Yeah the a+s is the right set uid command. And if you look into groups and start seeing people talke about a hex number like 644 or any other applicable number, it's just the equivelant to using chmod ugoa+rwx where u=user g=group o=other and a=all as isajera said and the read, write and xecute tags. Here is how I remember the hex numbers sorta.
4=r
6=rw
7=rwx
The first number is equivelant to u the second g and the third o, so if you want to set a files permissions to say r--rwxr-- it would be either;

chmod u=r,g=rwx,o=r filename OR
chmod 474 filename

Hope this helps some if any...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set up internet access drevil666 Linux - Newbie 3 06-22-2005 05:18 PM
How can I set up an access point? JordanH Linux - Wireless Networking 0 09-19-2004 11:06 PM
how do i set write access to a folder? phiqtion Linux - Newbie 6 05-28-2004 06:13 PM
set up root access [DvS]deadman Linux - Networking 4 04-26-2004 12:25 PM
can't set restricted access thebravenoob Linux - Wireless Networking 2 03-19-2004 12:48 PM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration