Ubuntu Servers :: "Warning: No Write Permission" Even With Root
Mar 21, 2011
i am using Ubuntu 10.10 and login using root on terminal but when i want to edit any file i get this error
"Warning: No write permission" Also see the result of dhcp restart
root@webmin:~# /etc/init.d/dhcp3-server restart
* Stopping DHCP server dhcpd3 [fail]
* Starting DHCP server dhcpd3 chown: changing ownership of `/var/lib/dhcp3': Read-only file system
chown: changing ownership of `/var/lib/dhcp3/dhcpd.leases': Read-only file system
chown: changing ownership of `/var/lib/dhcp3/dhcpd.leases~': Read-only file system
* check syslog for diagnostics.
My System was working fine in the morning..what happened i dont know and i m very confused about this situation
View 6 Replies
ADVERTISEMENT
Apr 7, 2010
I created 3 partitions on my usb stick, one is vfat, one ist ntfs and one is ext4.And i formated them like this:
Code:
mkfs.vfat -F32 /dev/sdg1
mkfs.ext4 /dev/sdg2
[code]....
View 2 Replies
View Related
Feb 3, 2010
I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific to Ubuntu? Or a misconfiguration on my machine? Writing to the file fails (as expected) if I do this from my normal user account.Is this normal behavior?Is there a way to prevent root from accidentally writing to a file (Preferably using normal filesystem mechanisms, not AppArmor, etc.)
I understand that root has total control over the system and can, eg, change the permissions on any file.My question is whether currently set permissions are enforced on code running as root. The idea is the root user preventing her/himself from accidentally writing to a file. also understand that one should not be logged in as root for normal operations.
View 4 Replies
View Related
Jul 25, 2011
I just have installed Fedora 15 to use it for multimedia server. I have installed also samba. Now I'm trying to access it from another PC (Windows 7) and I have no write access.
Code:
[root@echo mnt]# ls -l
total 12
drwxr-xr-x. 2 root root 4096 Jan 1 2006 boot
[Code]....
i just read whole internet (i have spend over 6h for reading and testing a lot of options and nothing...)
View 9 Replies
View Related
Jun 26, 2010
On an Apache2 server someone else setup, I have a folder with drwx--x--x permission and the php file can still write in the folder. But on my own setup, I need to set the same folder to drwx--x-wx. Inside the folder, I have a index.php that runs just by setting rwx--x--x but on my own setup, I need to allow read permission for others/group before it can run: rwxr-xr-x (or else I get a blank page). I tried changing the folder and files to root but it's the same.
View 5 Replies
View Related
Mar 2, 2010
8.04 64bit LTS no gui loaded Only the root user can write to /tmp. I tried to create a cron job for a user and received an error
Code:
crontab -e
no crontab file for ed - using an empty one
/tmp/crontab.SCQ30O: Permission denied
Creation of temporary crontab file failed - aborting
Then I tried a simple touch /tmp/test1 and it failed with a 'touch: cannot touch `/tmp/test1': Permission denied I tried the Windows fix and rebooted, no change. Only root can write to tmp. This may sound lame but... using ls /tmp show reversed video (highlighted blue on green) on the servers the the users have access to, just plain blue on the 'broke' one. I did a sudo chmod a+w /tmp but do not know if that was a smart thing to do or not...
View 2 Replies
View Related
May 6, 2010
Just had a new VPS installed running Ubuntu Server 8.04 Getting some errors when I connect to the server and try to use apt.. only trying to install nano and after messing around I've managed to get the error to change.. but still can't get any further.
error
Code:
# sudo apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
[code]....
View 4 Replies
View Related
Jan 20, 2011
want to run VirtualBox with root permissions. Trouble is that only when run as root i can access attached USB devices inside of a virtual machine, otherwise, these a greyed out).Now running VirtualBox as a root user also changes the configuration folders, making all my virtual machines already defined disappear. I also don't want to copy all to the root configuration folders. Is there a way to give the VirtualBox root permissions but without actually running the application as a root user. Is it possible to do without changing the permissions of the non-root user, i.e. i don't want my user to have all root permissions, due to security considerations.
View 1 Replies
View Related
Mar 24, 2010
the terminal and logged in as root i was changing file permissions and happened to change the root folder to 700. Now my icons have gone and i can't even access the terminal.
I was just wondering if it is possible to go to rescue mode using the cd and restore all the appropriate file permissions to root/ users if possible
View 4 Replies
View Related
Mar 10, 2010
I just isntalled LAMP using tasksel and have a problem. Whenever I try to access a page (aside from phpmyadmin, that works well), I get this error... Code: Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
I have restarted the computer, restarted apache, etc and still nothing. When I first installed, phpmyadmin was inaccessible, so I ran some command in terminal which apparently created a symlink between phpmyadmin in the user/share dir to the /var/www dir, and curious if this is the problem. I have no clue how to remove this symlink if this is the case, and have phpmyadmin working now due to install using sudo apt-get install phpmyadmin.
View 1 Replies
View Related
Nov 1, 2010
I've just moved onfrom developing some code on Debian (gcc 4.1) to Ubuntu (gcc4.4) and a warning in my g++ code has appeared. Basically in some serial prot code I get this errorwarning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_resultfrom function
void TxChar(COMPORT *port,unsigned char letter)
{
pthread_mutex_lock( &txmutex );
[code]....
View 7 Replies
View Related
Dec 21, 2010
My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:
# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
[code]...
View 3 Replies
View Related
Feb 21, 2010
I tried to read the File Permissions page on the wiki and my eyes glazed over after about three sentences. I've got a folder called /var/www/pics that I just want to be able to save image files to. My only other choice as I understand it is to save them to my home folder, then use a "sudo mv" command to copy files to that directory. How do I give my account permissions to save a file in that directory?
View 2 Replies
View Related
Mar 9, 2010
How do I use "chmod" command so that it allows me to write a file inside a certain directory ? This directory has permissions in the formdrwxr-xr-xOnce I try to write a file there, it says "Permission denied" ! Don't advise to use "sudo", since the file is created by some executable program compiled from a source code. If I was creating the file myself, I wouldn't have gone to this forum.
View 4 Replies
View Related
Aug 14, 2011
cat /etc/fstab
mount
ps -A
ls -al /media/
dmesg
groupsfootnotes
My problem:
When plugging in a pen drive it will be automounted, but only root (who owns it) has write access to it. Other users only have write access. (Neither my user, nor an unmodified test user)
My aim:
I want to be able to write on my pendrive without any additional manual work after plugging it in (iirc that is default on a standard ubuntu install).
Possible causes:
I once had a time where I wanted everthing to be minimal. Might be, that I removed something in connection with my problem. I reinstalled everything that came to my mind and could be connected to that problem w/o success. I merely removed stuff than editing stuff (never touched /etc/fstab or /etc/udev/rules.d/*). S
So I think I am missing some kind of service, that manages my (user?) permissions or so.
I use:
Ubuntu 10.04 (initially a kubuntu but I remove nearly everything Qt/KDE stuff) fluxbox (but most gnome services are active).
I tried/checked:
check my automount setting[1] - did not change the behaviour
media_automount - is checked
media_automount_open - is checked
usbmount - is installedntfs-config - did not help (even after reboot)
manual mount[2] - worked, but i don't want to do that everytime I plug in a pendrive
gksudo users-admin (made sure that amongs others the following entries are checked)
Access external storage devices automatically
Administer the system
Mount user-space filesystems (FUSE)
I didn't try:
chmod - seems to be only used for ext* fs
edit /etc/fstab - seems not to be supposed for such variable things like pendrives
- changing file systems for same pendrive
- different number of pen drives
- every pendrive needs its own fstab entry
udev rules - I was told to write some, but I am reluctant because- I never did that before (so I also didn't mess them up)
Additional info:
Code:
benedict@box:~$ cat /etc/fstab
# /etc/fstab: static file system information.
# Use 'blkid -o value -s UUID' to print the universally unique identifier for a device; this may be used with UUID= as a more robust way to name devices that works even if disks are added and removed. See fstab(5).....
View 4 Replies
View Related
Nov 9, 2010
I am having difficulties assigning permission for wordpress to write files. I am having problems with the permalink within wordpress and I think it might be because of the level of permission wordpress has. Currently on my system I need to set permission to 777 in order for wordpress to write to the .htaccess file.
I am running my website on a Ubuntu machine. Version 10.10 Apache2 2.2.4
However, when I leave the permission level set to 777 I still cannot get the permalink to point to the corrent page......See my discussion on this here. [URL]
I think what I need to do is change wordpress to use a user permission or a group permission and not "everyone". I would rather have wordpress setup to login as a specific user before it can write over a file.
View 5 Replies
View Related
Apr 7, 2010
why can't I copy files to my plugins folder for IceWeasel ?? I'm using Debian (Lenny I think) for PPC & I'm getting I don't have permision to write to the directory when I'm logged in as admin?
View 6 Replies
View Related
Feb 1, 2010
I just found that I could perform write operation using a normal user account to a file system I mounted with the commands as followed:
sudo mount -t ntfs /dev/sda1 /mnt/disk/
This is the corresponding entry in the output of "mount" command:
/dev/sda1 on /mnt/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
As far as I remember, when using a normal user account, I had to use "sudo" to perform any write operations (mkdir, rm, etc) to a device mounted using "sudo". But now it seems to be changed.
Do I remember wrong, or did Karmic have any updates change this setting? (I never manually changed user settings, except that I added a root user, but I never used it.)
OS: Karmic(up2dated)
Kernel: Linux stephen-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
View 4 Replies
View Related
Oct 29, 2010
I'm having an odd problem (although I'm probably missing something obvious to a non-semi-newbie):I have a directory used for samba shares which is owned by user fred, a system user which the windows clients on my network authenticate with to access the shares. I, roger, want to access the directories without having to put my 'sudo boots' on every time, so I made the directory group users and added roger to that group, and changed the file/folder modes from 0755 to 0775.However I still do not have write permissions inside the directory; I still seem to be considered 'other' and hence only have read and execute.
View 6 Replies
View Related
Jun 29, 2010
i have client and server PCs, both with openSuse 11.2.
on the server side, i have mounted HD partition to /vmshare dir. relevant line in /etc/fstab reads:
Code:
/dev/disk/by-id/ata-WDC_WD3200AAJS-07B4A0_WD-WCAT16493946-part2 /vmshare reiserfs user,acl 1 2
i want to export /vmshare dir via nfs. i have configured it through yast and resulting line in /etc/exports reads:
Code:
/vmshare *(rw,root_squash,sync,no_subtree_check,crossmnt)
the permissions for this directory is drwxrwxr-x root vmshare.
i can successfully mount the exported dir on client side, i can move between directories and list contents, but i can't write into it (not even as a root). on the server side, i can write to the directory only as root. the vmshare group is created on both machines with same gid as well as all users have same uids. firewalls are down.y.
View 3 Replies
View Related
Jan 11, 2011
Is there any use if a file has only write and execute permission and not read permission?
View 2 Replies
View Related
Oct 22, 2010
How would i write a command that can find all the objects under the etc directory that have group write permission enabled and have not been accessed in the last X days. This is what i got from internet souce but i m not able to modify it according to my distribution. find /etc -perm -0070 -a -mtime +X ! -type l?print Here is the exact statement from link i m referring to.
[Code]..
View 3 Replies
View Related
Dec 31, 2010
I have tried to 'makepkg -s' easy-e17 in a few different places, but to no avail. I get the error:
Code:
ERROR: You do not have write permission to store packages in /bin/easy-e17.
Aborting...
Though, I also get this error for any other directory I try in. When trying with 'sudo' I am told that it is a "bad idea." I have never used makepkg before, so whatever is wrong might be obvious; I have never "fine-tined" my makepkg.conf before, either. Probably not relevant, but just in case: easy-e17 is a group of files from the Arch User Repository for installing Enlightenment (DR17). Perhaps there is something I need to install in order to make packages from the AUR? Or does that sound ridiculous? I wouldn't know.
View 3 Replies
View Related
Dec 28, 2010
I have setup a NFS server and this the content of /etc/exports at the server with IP A.B.C.D1 is:/home/shared A.B.C.D2(rw,no_root_squash)Problem is, only the root at A.B.C.D1 and A.B.C.D2 can write to that folder.
View 9 Replies
View Related
Apr 24, 2011
Which ways are creating an ftp account (not root or special) eg. with proftpd, where logging in with that ftp, user can access and write given www subdirs content.
View 6 Replies
View Related
Dec 29, 2010
I am digging the forum through and cannot find the answer. My problem is, the usb hard drive when plugged in get automatically mounted what is great. Unfortunately I get only read permissions, while need write too.There are no any entries in fstab, so I do not know what does handle automounting and how to edit options to force mounting with write permission to user (root obviously can write). Are they hald options or any other app does this? Where to edit them? The drive is not permanently ON, just switch it when need, so it has to work every time I put it on.
View 8 Replies
View Related
May 1, 2011
jeff@optiplex:/media$ ls -l
total 124
lrwxrwxrwx 1 root root 6 Apr 7 14:46 cdrom -> cdrom0
drwxrwxr-x 2 root root 4096 Apr 7 14:46 cdrom0
[code]....
View 10 Replies
View Related
Apr 29, 2010
I switched a external 500GB usb HD from FAT to ext4, because the box it's on no longer has windows.It mounts fine and I can read it - but not write.I have some inkling as to what to do, but prefer your opinions first.
View 9 Replies
View Related
Dec 21, 2010
I have a file the owner is root:root ( mode is 644 ), I want to release read & write permission to a non root user ( eg. admin_usr ), I tried to create a specific group ( eg. ADM ) and release it to root user and admin_usr ( by adding this users to ADM in /etc/group ) , but it is not work, if preserve the file mode to 644 , is it ok? how to do it if I want to have read & write permission in my case ?
View 5 Replies
View Related
Jun 19, 2010
Mount a Windows share where my user account has admin privileges. All permissions granted to the share on the windows pc side.Mount statement is as follows:sudo mount -t smbfs -o username=johndoe //winname/directoryname /mnt/tmp/Share mounts ok but does not let me create or write to an existing file. When I select Properties on the directory it says that permissions are unknown on the share looking at it from Ubuntu.
View 4 Replies
View Related