488889
212
Zoom out
Zoom in
Previous page
1/284
Next page
17.4.2 Using sudo
Alternatively, you can also use sudo (superuser “do”) to execute some tasks which
normally are for roots only. With sudo, administrators can grant certain users root
privileges for some commands. Depending on the system conguration, users can
then run root commands by entering their normal password only. Due to a timestamp
function, users are only granted a “ticket” for a restricted period of time after having
entered their password. The ticket usually expires after a few minutes. In openSUSE,
sudo requires the root password by default (if not congured otherwise by your
system administrator).
For users, sudo is convenient as it prevents you from switching accounts twice (to
root and back again). To change the ownership of a le using sudo, only one command
is necessary instead of three:
sudo chown wilber kde_quick.xml
After you have entered the password which you are prompted for, the command is
executed. If you enter a second root command shortly after that, you are not
prompted for the password again, because your ticket is still valid. After a certain
amount of time, the ticket automatically expires and the password is required again.
This also prevents unauthorized persons from gaining root privileges in case a user
forgets to switch back to his normal user account again and leaves a root shell open.
17.5 File Access Permissions
In Linux, objects such as les or folders or processes generally belong to the user
who created or initiated them. There are some exceptions to this rule. For more in-
formation about the exceptions, refer to Chapter 9, Access Control Lists in Linux
(↑Security Guide). The group which is associated with a le or a folder depends on
the primary group the user belongs to when creating the object.
When you create a new le or directory, initial access permissions for this object are
set according to a predened scheme. As an owner of a le or directory, you can
change the access permissions for this object. For example, you can protect les
holding sensitive data against read access by other users and you can authorize the
members of your group or other users to write, read, or execute several of your les
where appropriate. As root, you can also change the ownership of les or folders.
17.5.1 Permissions for User, Group and Others
Three permission sets are dened for each le object on a Linux system. These sets
include the read, write, and execute permissions for each of three types of users—the
owner, the group, and other users.
The following example shows the output of an ls -l command in a shell. This com-
mand lists the contents of a directory and shows the details for each le and folder
in that directory.
200 Start-Up
212


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Suse openSUSE 12.2 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Suse openSUSE 12.2 in the language / languages: English as an attachment in your email.

The manual is 14 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Suse openSUSE 12.2

Suse openSUSE 12.2 User Manual - English - 530 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info