Sponsored Content
Full Discussion: No access to etc directory
Operating Systems Linux Ubuntu No access to etc directory Post 302943753 by GaryW on Tuesday 12th of May 2015 01:50:19 PM
Old 05-12-2015
ls

Code:
root@server:-# ls /
bin dev etc lib media run srv var home


Last edited by Don Cragun; 05-12-2015 at 04:50 PM.. Reason: Add CODE tags.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

failed to access directory thru ftp

Hi all, I am a beginner to unix and ftp too.So i request your valuable comments. Requirement: I want to put a specific file into a server(linux) and under a particular directory path in that server as /caps/details/data/ Problem : I login to that server through the command `ftp... (1 Reply)
Discussion started by: DILEEP410
1 Replies

2. UNIX for Dummies Questions & Answers

How to access an directory with spaces

I am getting an error while trying to access a directory created with spaces in between, i couldn't able to login into that directory could you please suggest me what should i do to access that directory or if i want to rename that directory what should i do. Directory Name: MH PLR 2005... (1 Reply)
Discussion started by: Ariean
1 Replies

3. Solaris

Restricting FTP access for a particular directory

Dear All, I have created a user called "x" who is allowed only to FTP and it is working fine. Here my problem is, I want to give access to a particular directory say for eg:- /dump/test directory. I don't find any option in the useradd command to restrict access to this particular directory only... (1 Reply)
Discussion started by: Vijayakumarpc
1 Replies

4. Solaris

User with limited access to one directory

is there a way to create a user and limit him to read,write and execute only in one direcotry. the directory is already exsist and it belongs to dba group. i would like to make this user can't even cd to another directory or even if he can he cant do anything in the other directories. if... (7 Replies)
Discussion started by: q8devilish
7 Replies

5. UNIX for Dummies Questions & Answers

Protecting a folder/directory against root access.

A friend and I run a vbulletin forum which recently got hacked. We believe what wound up happening was the attacker gained access to the VPS box and from there elevated their user accounts to admin status on our forums. Obviously if someone gets into our box in the future it'll be a disaster so... (1 Reply)
Discussion started by: fannypack
1 Replies

6. Shell Programming and Scripting

how to create and access a directory in the same script using variables

I have a working script that defines the paths using variables which is used to move a rename files that are being archived. Is there a way to create a directory in the path with the date as the name and then reference it when moving the file to it? Here is what I have tried with no luck.... ... (1 Reply)
Discussion started by: Snickyt0310
1 Replies

7. UNIX for Advanced & Expert Users

Cannot access: No such file or directory

In a directory I have a file called 250SocatSC. When i use the ls -l command I see its size, permissions, etc. Everything seems alright with it but when I try to copy (cp) it or to rename (mv) it I got the following message: "cannot access: No such file or directory". I suspect that has something... (5 Replies)
Discussion started by: 78air
5 Replies

8. AIX

openssh chroot facility and directory access

Good day. I currently have a request to have sftp access to a specific directory for a user(s). They can have access to that folder only, and nothing below it. Now here is the gotcha that seems to be catching me. The folder they need access to is NOT owned by root, and most of the parent... (0 Replies)
Discussion started by: smurphy_it
0 Replies

9. Red Hat

cannot access a directory with samba

path = /opt writeable = yes ; browseable = yes # guest ok = no valid users = oracle path = /opt/TEST8000/oracle/apps/apps_st/appl/ffcl/12.0.0/reports/US writeable = yes ; browseable = yes valid users = oracle path... (1 Reply)
Discussion started by: rehantayyab82
1 Replies

10. Linux

Restricting directory access in Apache server

Hi all, I have a web site that I'm serving on an Apache server, and it has a number of different folders, but I only want the user to be able to access certain ones -- the majority of them I don't want the user to access. I tried modifying my /etc/apache2/conf.d/security file to do this, but I... (1 Reply)
Discussion started by: Zel2008
1 Replies
xauth_selinux(8)					       SELinux Policy xauth						  xauth_selinux(8)

NAME
xauth_selinux - Security Enhanced Linux Policy for the xauth processes DESCRIPTION
Security-Enhanced Linux secures the xauth processes via flexible mandatory access control. The xauth processes execute with the xauth_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. For example: ps -eZ | grep xauth_t ENTRYPOINTS
The xauth_t SELinux type can be entered via the xauth_exec_t file type. The default entrypoint paths for the xauth_t domain are the following: /usr/bin/xauth, /usr/X11R6/bin/xauth PROCESS TYPES
SELinux defines process types (domains) for each process running on the system You can see the context of a process using the -Z option to ps Policy governs the access confined processes have to files. SELinux xauth policy is very flexible allowing users to setup their xauth pro- cesses in as secure a method as possible. The following process types are defined for xauth: xauth_t Note: semanage permissive -a xauth_t can be used to make the process type xauth_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. BOOLEANS
SELinux policy is customizable based on least access required. xauth policy is extremely flexible and has several booleans that allow you to manipulate the policy and run xauth with the tightest access possible. If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server, you must turn on the authlo- gin_nsswitch_use_ldap boolean. Disabled by default. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Enabled by default. setsebool -P deny_ptrace 1 If you want to allow all domains to use other domains file descriptors, you must turn on the domain_fd_use boolean. Enabled by default. setsebool -P domain_fd_use 1 If you want to allow all domains to have the kernel load modules, you must turn on the domain_kernel_load_modules boolean. Disabled by default. setsebool -P domain_kernel_load_modules 1 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. setsebool -P fips_mode 1 If you want to enable reading of urandom for all domains, you must turn on the global_ssp boolean. Disabled by default. setsebool -P global_ssp 1 If you want to allow confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. Enabled by default. setsebool -P kerberos_enabled 1 If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default. setsebool -P nis_enabled 1 If you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Enabled by default. setsebool -P nscd_use_shm 1 If you want to support ecryptfs home directories, you must turn on the use_ecryptfs_home_dirs boolean. Disabled by default. setsebool -P use_ecryptfs_home_dirs 1 If you want to support fusefs home directories, you must turn on the use_fusefs_home_dirs boolean. Disabled by default. setsebool -P use_fusefs_home_dirs 1 If you want to support NFS home directories, you must turn on the use_nfs_home_dirs boolean. Disabled by default. setsebool -P use_nfs_home_dirs 1 If you want to support SAMBA home directories, you must turn on the use_samba_home_dirs boolean. Disabled by default. setsebool -P use_samba_home_dirs 1 NSSWITCH DOMAIN
If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server for the xauth_t, you must turn on the authlogin_nsswitch_use_ldap boolean. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to allow confined applications to run with kerberos for the xauth_t, you must turn on the kerberos_enabled boolean. setsebool -P kerberos_enabled 1 MANAGED FILES
The SELinux process type xauth_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. cifs_t ecryptfs_t /home/[^/]*/.Private(/.*)? /home/[^/]*/.ecryptfs(/.*)? fusefs_t /var/run/[^/]*/gvfs nfs_t user_home_t /home/[^/]*/.+ user_tmp_t /var/run/user(/.*)? /tmp/hsperfdata_root /var/tmp/hsperfdata_root /tmp/gconfd-.* xauth_home_t /root/.xauth.* /root/.Xauth.* /root/.serverauth.* /root/.Xauthority.* /var/lib/pqsql/.xauth.* /var/lib/pqsql/.Xauthority.* /var/lib/nxserver/home/.xauth.* /var/lib/nxserver/home/.Xauthority.* /home/[^/]*/.xauth.* /home/[^/]*/.Xauth.* /home/[^/]*/.serverauth.* /home/[^/]*/.Xauthority.* xauth_tmp_t xdm_tmp_t /tmp/.X11-unix(/.*)? /tmp/.ICE-unix(/.*)? /tmp/.X0-lock xdm_var_run_t /etc/kde[34]?/kdm/backgroundrc /var/run/[kgm]dm(/.*)? /var/run/gdm(3)?.pid /usr/lib/qt-.*/etc/settings(/.*)? /var/run/slim.* /var/run/lxdm(/.*)? /var/run/slim(/.*)? /var/run/xauth(/.*)? /var/run/xdmctl(/.*)? /var/run/lightdm(/.*)? /var/run/systemd/multi-session-x(/.*)? /var/run/xdm.pid /var/run/lxdm.pid /var/run/lxdm.auth /var/run/gdm_socket FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. You can see the context of a file using the -Z option to ls Policy governs the access confined processes have to these files. SELinux xauth policy is very flexible allowing users to setup their xauth processes in as secure a method as possible. STANDARD FILE CONTEXT SELinux defines the file context types for the xauth, if you wanted to store files with these types in a diffent paths, you need to execute the semanage command to sepecify alternate labeling and then use restorecon to put the labels on disk. semanage fcontext -a -t xauth_exec_t '/srv/xauth/content(/.*)?' restorecon -R -v /srv/myxauth_content Note: SELinux often uses regular expressions to specify labels that match multiple files. The following file types are defined for xauth: xauth_exec_t - Set files with the xauth_exec_t type, if you want to transition an executable to the xauth_t domain. Paths: /usr/bin/xauth, /usr/X11R6/bin/xauth xauth_home_t - Set files with the xauth_home_t type, if you want to store xauth files in the users home directory. Paths: /root/.xauth.*, /root/.Xauth.*, /root/.serverauth.*, /root/.Xauthority.*, /var/lib/pqsql/.xauth.*, /var/lib/pqsql/.Xauthority.*, /var/lib/nxserver/home/.xauth.*, /var/lib/nxserver/home/.Xauthority.*, /home/[^/]*/.xauth.*, /home/[^/]*/.Xauth.*, /home/[^/]*/.serverauth.*, /home/[^/]*/.Xauthority.* xauth_tmp_t - Set files with the xauth_tmp_t type, if you want to store xauth temporary files in the /tmp directories. Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. semanage permissive can also be used to manipulate whether or not a process type is permissive. semanage module can also be used to enable/disable/install/remove policy modules. semanage boolean can also be used to manipulate the booleans system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was auto-generated using sepolicy manpage . SEE ALSO
selinux(8), xauth(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8) xauth 14-06-10 xauth_selinux(8)
All times are GMT -4. The time now is 02:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy