Permissions are the unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.
4
votes
2answers
861 views
Selinux is denying access to mysqld
I have a script that dumps a mysql database. It then compresses the file and this gets stored in my home folder by using cron. The problem is I seem to be getting an error message.
mysqldump: ...
3
votes
2answers
62 views
How to run script with the privileges expected of the script's general “intended user”?
During the development of a script, some bugs remain "latent" until the script is run by a different user. (For example, the script may access a file that only the person developing the script has ...
3
votes
2answers
127 views
What is the proper solution to a web server trying to write to a directory?
So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box...
When wordpress attempts to do something like upload a plugin, it is using the ...
2
votes
2answers
158 views
I can not remove folder from server
Accidentall I created the folder on remotely server (Server OS is Linux) using php: mkdir("folder_name",0);
Now I can not delete this folder from server. I think this is from permission, because 0 is ...
2
votes
2answers
541 views
Limited SSH user on Ubuntu 12
I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
1
vote
2answers
227 views
SMB Mount To Windows Server Appears to Lock up. Any Ideas?
We are running CentOS 6.3 with all the latest updates. (Attempt to resolve this issue)
The Server I am trying to connect to is a Windows Server 2008 R2 box. Though this applies to our old SBS'03 Box ...
5
votes
1answer
378 views
Immutable bit on AIX?
Under Linux I can:
chattr +i SOMEFILE
so that even root can't modify the SOMEFILE. Are there any similar solutions for AIX?
3
votes
1answer
1k views
How to handle network interfaces on crunchbang linux desktop?
I have installed crunchbang statler which is based on debian squeeze.
By default there is network-manager-gnome 0.8.1 (/usr/bin/nm-applet I believe) running with an icon near the clock/tray area.
I ...
2
votes
1answer
940 views
How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?
If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at ...
1
vote
1answer
93 views
How are default permissions determined (on OS X)?
My (limited) understanding of basic Unix is that any files that are created will be created based on the permissions of the creating user. In particular, the group assigned will be the creating user's ...
1
vote
1answer
103 views
security concern around adding cron user to web application group
I have a permissions issue on my CentOS 5.6 machine with regards to the cron user.
On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below:
...
1
vote
1answer
1k views
Allowing write access to an SMB mounted drive
Following this guide I was able to get my Samba share to mount on my Ubuntu 12.04 system. I can navigate the folders just fine. However I cannot create a directory nor create a file. I get the ...
0
votes
1answer
18 views
disabling root permissions
From Linux From Scratch build a minimal system for running my application. but struck on disabling root permission.
Need my minimal lfs as ubuntu.
when ubuntu boots login-screen displays when we ...
0
votes
1answer
56 views
Setting permissions with FTP
I'm having some issues setting up permissions for FTP. Read another thread on here regarding it, but I wasn't sure if it really matched what I needed.
Essentially, right now I've got the client's FTP ...
3
votes
0answers
23 views
Setting permissions for specific programs to run as guest
How do I set permissions for an HTTP server (nodejs) to run programs in /usr/local/share/npm/ safely?
My use case is to setup my OSX box to run cloud9 and use titanium to build iOS apps for ...
3
votes
0answers
293 views
Set GPIO permissions cleanly
Can the default permissions and ownership of /sys/class/gpio/ files be set, e.g. by configuring udev? The point would be to have a real gid for processes that can access GPIO pins on a board.
Most ...
2
votes
0answers
34 views
Problem with encrypting /var/www and ikiwiki
I tried to encrypt /var/www with encfs. To do so I did following:
mv /var/www /var/www.bak
mkdir /var/www_enc
encfs --public /var/www_enc /var/www
cp -a /var/www.bak/* /var/www/
/etc/init.d/apache2 ...
2
votes
0answers
71 views
Best location and permissions for socket files
I will have a couple of WSGI applications. They will communicate with nginx using sockets. For that purpose I've created the directory /run/wsgi in which I will place all the socket files that are ...
2
votes
0answers
77 views
Permission rights on automatic directories inside /media
I got a permission denied when I am trying to cd inside a directory.
I could chown it for my user, however I'm wondering if the problem is elsewhere:
The directory in question is an automatic ...
2
votes
0answers
163 views
How do I let an SDL app (not running as root) use the console
I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
2
votes
0answers
553 views
Samba's “inherit permissions” does not inherit modes for other
I have a share with "inherit permissions = yes". I have a directory in the share with mode rwxrwsr-x. If I create a subdirectory, the modes are rwxrws---. The same happens with a parent directory with ...
2
votes
0answers
349 views
Owner & Group setting for OpenCart install on CentOS 6.3
I'm setting up a development server on a HP microserver with CentOS 6.3. I'm relatively new to Linux and have ran into some issues/confusion. I have the server fully setup/updated with yum. It's a ...
2
votes
0answers
270 views
proper permissions under HTTP root with Apache2 + FastCGI + Suexec
I currently have a setup which runs Apache2 + FastCGI PHP + Suexec.
As an example, I'm using /mnt/data/www/vhosts/inflex.co.uk/htdocs as a DocRoot for one of my virtual hosts.
I have a script ...
2
votes
0answers
483 views
Permissions for Apache and FTPd users
I'd like advice about permissions on directories and files on a web/ftp server.
Here is my situation:
Debian Server with those user:group
userme:userme for SSH
www-data:www-data for apache/php
...
1
vote
0answers
25 views
vsftpd virtual user read permissions
I have a vsftp server that services a read-only public space by anonymous login. It works fine. I need to add a few specific users that will authenticate by username/password and they will have ...
1
vote
0answers
51 views
samba 4 force user
I have a directory with files owned by Linux user quux. I want to give access to it over CIFS using Samba 4 for two persons so they have different usernames foo and bar and passwords but access the ...
1
vote
0answers
111 views
How to mount samba rw because everything fails
I'm trying to mount windows share on my laptop and everything mounts ok but somehow I get permission denied when I try to create new file inside mounted folder. I tried noperm, uid, gid, noacl etc. ...
1
vote
0answers
44 views
write only permissions on samba
I am busy setting up a file server in our church office (using samba on a debian machine).
I would like to impliment a dropbox-like folder for each user, where othere users may deposit files.
...
1
vote
0answers
77 views
Apache created files and its permissions for CentOS 6.x
In short, I have an authenticated HTTP-POST that:
posts a jpg image (created as 666 apache:www) into /directory1 (777 ftpuser:www)
creates /directory2 (created as 666 apache:www) in a 777 ...
1
vote
0answers
195 views
Network Manager don't show me Wireless connection
I've just installed on my Debian Sid with XFCE4 network manager, but I have a problem, no wireless connection are shown. What Should I do?
I used to use wicd but I had problems to connect to free ...
1
vote
0answers
62 views
External HDD read/write permission changing from a cron job
So, I run an overnight python script that runs a backup of our web data in the /var/www directory, then moves the backups to an external HDD in /media. The script in scheduled in the sudo crontab ...
1
vote
0answers
88 views
Unable to transfer files via SFTP when using a normal user account
I'm unable to transfer files via WINSCP>sftp to a GNU/Linux server. When transferring a file using root account, there's no problem. However, when I transfer using another account, the file being ...
1
vote
0answers
123 views
vsftpd on Ubuntu not obeying filesystem permissions
I'm trying to set an FTP upload to a web root on Ubuntu 12.04 using vsftp.
The user has a local account, username_ftp. I changed their home to their web root in /etc/passwd.
...
1
vote
0answers
120 views
Transmission client can't access mounted NFS share
I set up transmission-daemon on my Scientific Linux 6.3 machine to download files to a mounted NFS share (mounted during boot via /etc/fstab). The directory that the NFS share is mounted to was ...
1
vote
0answers
71 views
Running Tomcat MySQL and Apache under a group
I am trying to set up a web server at home using Ubuntu, but prefer my bash scripts to be platform agnostic hence why I am asking here. I also dislike apt-get everything. I am trying to create a ...
1
vote
0answers
293 views
ntp cannot open shared object file: Permission denied
On a server I haven't worked on, ntpd is broken:
# /etc/init.d/ntpd start
ntpd: error while loading shared libraries:
libz.so.1: cannot open shared object file: Permission denied
but permissions ...
1
vote
0answers
138 views
Samba: system group mapping
I have w2008R2 PDC and Linux server with samba and winbind. Now I'd like to add some domain users to Unix adm group in AD.
Let's say I have adm group defined in AD, and every user from this group ...
1
vote
0answers
515 views
Windows domain account can't create files via samba share, but can do this in linux shell, why?
I'm migrating tomcat server from windows to linux (CentOS 6.3 64bit), and want to use samba to share tomcat directory to technical department staffs (windows domain users) with read+write rights.
...
1
vote
0answers
1k views
Understanding udev rules and permissions in libusb
I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help.
Finally I solved the ...
1
vote
0answers
253 views
Permission issues while setting up cakephp
I am pretty new to linux and trying to setup cakephp on opensuse 12.1.
I did as told on the cakephp website(blog tutorial) and most probably encountering some permission issues.
I slapped the cakephp ...
1
vote
0answers
297 views
W2K3 DC: Samba file sharing access permission problem
I want to access SAMBA shares from a Windows Server 2003 domain controller without a password. But, I am receiving a permission error each time. I'm using RedHat 5.5.
# ls -l
total 96
-rw------- 1 ...
0
votes
0answers
25 views
Xfce: Upgrade from Squeeze to Wheezy broke xfce's user policies
While using Debian squeeze, I was able to allow a user shutdown in xfce by adding users to the powerdev group (see here: xfce: Allow shutdown for non-root users).
Now, I upgraded my system to Debian ...
0
votes
0answers
32 views
Why can't users besides root create files in a samba share?
I am sharing a directory on one Red Hat machine via samba, and mounting it on another Red Hat machine with the following command:
mount -t cifs -o guest <remotepath> <localpath>
The ...
0
votes
0answers
57 views
Samba guest access
I have a home server with samba. with windows i can access and make folder(always with permission 777) like guest( no password ) without problem. But with linux, when i mkdir i can not modify this ...
0
votes
0answers
50 views
Why can't the sudo user overwrite files by SFTP?
What permission is needed to let user (sudo) overwrite the files on my VPS over SFTP?
0
votes
0answers
30 views
user permission with ldap server
I am trying to setup a ldap server which authenticate each user with its respected permissions i.e Full or read-only access to each server.
We don't want to create each user manually on each server.
...
0
votes
0answers
173 views
Linux Permissions vsftpd
I have mybb installed and running in /var/www/forums.
I have two users part of the www group, logan and www-data.
I have the recursive permissions of forums directory set to:
chmod -R 755 forums
...
0
votes
0answers
147 views
Cannot Map W7 Drive to Samba Server: Access Denied
I tried to make separate Samba accounts with different permissions, but now I can't login at all. I tried mapping a network drive from windows 7, and it says access denied every time, even though I'm ...
0
votes
0answers
265 views
Symbolic link to a socket
From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service.
$ ls -al ...
0
votes
0answers
142 views
How can I setup auth/winbind to prefer local accounts over AD even if the account is in both systems?
I seem to have an interesting account/permissions problem on my RHEL 6 server. We migrated from a RHEL 3 installation and I moved over /etc/shadow,passwd,and groups so that we can maintain all of our ...
