OpenSUSE Install :: User 'root' Can Read The Content Of The File

Apr 12, 2011

I came across this issue today and it changes everything I know about file permissions in linux. I created the following files in my system :

Code:

/tmp> ls -lad /tmp/testperm/
drwx------ 2 sagi users 4096 Apr 12 20:23 /tmp/testperm/
/tmp> ls -lad /tmp/testperm/file.txt
-rw------- 1 sagi users 12 Apr 12 20:23 /tmp/testperm/file.txt

[code]....

One more thing, as you can see I also set that only the owner of the directory (which is me again) can read and cd (the execute bit) to the directory. how come user 'root' can read the content of the file ?

Code:

# id
uid=0(root) gid=0(root) groups=0(root)
# cat /tmp/testperm/file.txt
Hello world

[code]....

View 9 Replies


ADVERTISEMENT

OpenSUSE Install :: Get Root Privileges On User Account Without Using Root Login?

Feb 5, 2011

i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it. i need the same privileges as the root profile.

View 9 Replies View Related

OpenSUSE :: Install Packages - Error File '/content' Not Found On Medium

Jul 1, 2010

I have it running on my system (version 11.1.1) and i have installed only the kernel. i want to install several packages but i can't. yast2 -i bison-devel but i get this error:Error Download failed: File '/content' not found on medium [URL]...

View 6 Replies View Related

OpenSUSE Install :: Boot-up Results In A Read-only Root Drive?

May 20, 2011

Somehow, the wife got her laptop into this situation yesterday. The Windows partition booted normally when selected from GRUB but os 11.3 would boot to a command line login and pretty much everything besides CTRL-D was useless as the root partition was ro.

I booted a live CD and found two a couple of strange things. First, the system clock was reset to the default date/time (2007-xx-xx). I reset that. Second, after correcting the time I ran fsck on the root and home partitions. Both went through with no errors reported but the 20GB root partition took a long,long time to complete while the 80GB home partition went pretty quickly. After doing the above, the system booted normally but both partitions reported running the transaction log as well as forcing fsck where I had just done that. My question is for future reference: how does the system react to a grossly incorrect date/time, especially where all the drive data reports being much later than the reported system time? Would this be the reason for what I saw? I have no idea how the wife managed to reset the system clock, even if the

View 2 Replies View Related

OpenSUSE Install :: Guest User Able To Read Home Directory

Sep 17, 2010

I've created a guest user in the group "user." I'd like to limit its read access to its own home directory. However, by navigating through File system>home it's able to read my home directory. I was under the impression that users were limited to their own home directories. Am I missing something, or is there a group I can assign this guest to, to limit its read access to its own home directory? I've read about Pessulus (I use Gnome), but that seems to be geared toward limiting access to applications, not directories.

Ideally, I'd like to create a group that cannot navigate through any files except its own home directory. But it seems that if I try to do that, the guest user will not be able to execute any applications. I've read all the posts (and other forums) I could find about creating such a limited account, but the chroot jail is beyond my understanding. I get the feeling that it's geared toward networks.

View 9 Replies View Related

General :: Remount Root Filesystem As Read/write After Modify Readonly-root File?

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

Software :: How To Set A User To Let Him Having The Read-right As The Root

Oct 1, 2010

Assumed I have user called myUser. How to set this user to have the read-right as the root?

View 4 Replies View Related

OpenSUSE Install :: Cannot Login With Root User

May 10, 2010

I have installed OpenSUSE a few months ago and worked fine. But from yesterday i can't login with root user. I received the message:
Login: root
Invalid user name
I have no question for password neither.

View 9 Replies View Related

Fedora :: Can Non-root User Read BIOS Asset Tag

Mar 12, 2010

If I'm root, I can use the dmidecode command to find out the BIOS Asset Tag value:

Code:

Handle 0x0004, DMI type 3, 17 bytes
Chassis Information
Manufacturer: xxx
Type: xxx

[code]...

Is there a way that a user without root privileges can read this value?

View 4 Replies View Related

OpenSUSE Install :: How To Auto Login By Root User

Aug 13, 2009

How can I enable "Auto Login" for root user?In " Yast --> Security And Users --> User And Group Management --> Expert options --> Login Settings " is just my own user and there's no root user to choose.

View 9 Replies View Related

OpenSUSE Install :: Gnome Won't Boot As Non-root User?

Feb 1, 2010

this is a strange one. running 11.2 pae 32 bit kernel with all the most recent updates and gnome. This is a fresh install. I built the machine, and then installed all my repositories and software, and used the machine for about 2 days, and now when I log in it hangs on logging into gnome. it's strange because the wireless notification about available wireless networks is in the top left corner of the screen, and nothing else happens. I can log in as root.I also had this issue before I formatted the machine (that's why I formatted)

View 9 Replies View Related

General :: Setting Read Permissions Of A Directory For Root User Only?

Mar 21, 2010

I'm using ubuntu 9.10. I used the command:

root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private to set the permissions of Private folder for root but it is giving error:

Code:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private
chown: changing ownership of `/media/104B-FF96/Private/5.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/6.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/7.jpg': Operation not permitted

[Code].....

View 5 Replies View Related

Programming :: Bash - Read Content Of File To Variable And Use This Variable In For Loop ?

Aug 21, 2009

I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.

For example:

Code:

Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).

View 6 Replies View Related

OpenSUSE Install :: Running Script As Root At User Login?

Feb 19, 2010

I need to run a script (which requires root privileges) on login per-user only. I want this to runtomatically so I'll add an appropriate line to .profile.A couple of questions:1 The easiest way I can think of to run the script as root is to setuid, but I know there are security concerns. Is there a better way

View 6 Replies View Related

OpenSUSE Install :: Kill The Entire Session (as Root) For A User?

May 5, 2010

I've got a somewhat anemic box, resource-wise, set up in the office where any authorized user plus a guest account can log on. Guest is tightly restricted, but we get a lot of people passing through who need one-time or occasional access - this isn't the big problem. What's causing me problems is that a user will log in, walk away or go to the john and the screen locks. Next user (or this one comes back) and winds up doing another login. At the end of a week or so, I may have a couple of dozen sessions listed when I ask for "users". Since some of these session contain open applications they eat up an awful lot of a marginal amount of available memory. How do I kill the entire session (as root) for a user? Gotta be simple but it's not obvious to me.

View 3 Replies View Related

OpenSUSE Install :: Mounting Encrypted Partitions As User Not Root?

Mar 21, 2011

there is a way to mount, encrypted partitions as a normal user and not as root so that i may copy files into it using the file manager itself? even in the case of normal partitions other than /home, i can't seem add any data in them. the mount points i used are seperate directories within the /home partition?? also, is there a way to create partitions in such a way that it can be accessed, just as how windows partitions are accessed in linux?

View 9 Replies View Related

OpenSUSE Install :: Cannot Log In To Any User Account Including Root After Logging Out In 11.4

Apr 17, 2011

My install of 11.4 has been running perfectly for for several weeks now. But- (always a but) today it started acting up. I cannot log in to any user account including Root after logging out. After a cold boot I can log in again anywhere but after logging out I have to reboot again then I can get back in to any account once. After logging out any attempted log in causes the splash screen to blank for a few seconds and then it comes back with the previous successful user name log in but typing in the password blanks the screen a few seconds again. Clicking on a user account also blanks the screen a few seconds and then it again comes back with the previous log in users name.

View 1 Replies View Related

Networking :: Run The Job Under A Root Account And Deny Read/write Access To A Normal User?

Jan 18, 2010

I'm setting up Ubuntu Karmic on my sister's old computer for my nephew, he's quite young so my sister asked to install some content filtering. I'll first setup an OpenDNS account and I've installed and managed to get dansguardian and squid working on a virtual machine to try it out. so far it's working pretty well, but I need to secure it form the inside out.

I was thinking of blocking specific outbound ports so he could not bypass the proxy. because by default the firefox configuration can be easily changed. so I have a couple of questions.

1. is it possible to block outgoing ports on Ubuntu?
2. is that the best method?
3. is there anything else I should be aware of to prevent subversion?

lastly, this question is probably unrelated to this board but I've set up a cron job to update a dynamic ip with OpenDNS, the problem is that the password is in clear text in the user's crontab, can I play with permissions? is it possible to run the job under a root account and deny read/write access to a normal user?

View 1 Replies View Related

OpenSUSE Install :: HP Lips Printer Driver Stops Often Restarts Only Via Root User?

Apr 7, 2010

I installed the HPLips printer driver for my HP Officejet Pro 8500 Printer.

The driver often stops printing on its own (HP Device Manager => "Printer Control" tab shows "stopped"). I guess it does so when it encounters a situation where it cannot print right on.

The problem: Users without root permission cannot restart printing, even when everything is o.k.. They have to call me in order to "start printer", because restarting it needs root access.

Does anyone know how to solve the problem: either setting the driver not to turn to "stopped" or permitting a restart by normal users?

View 7 Replies View Related

OpenSUSE Install :: File System Becomes Read-only, Cannot Restart Apache?

Jan 2, 2010

running 11.0,Linux 2.6.25.20-0.5-paeusing a 3ware 9500 adapter - raid 5 array with hot sparethe system is only 6 weeks old.several days ago, apache would stop responding. trying a restart gives:

/etc/init.d/apache2 start
/bin/mktemp: failed to create file via template `/tmp/apache2.nb6xHyzlga2e': Read-only file system

[code]....

View 7 Replies View Related

General :: Make A File Read-only Even For Root?

Jun 2, 2010

Remember back in the days of MS-DOS, a file could have 4 different attributes: archive, read-only, hidden, system. As you know, MS-DOS didn't have any user rights or privileges. Files had no owner. If you were at the command line, you could do whatever you wanted, you could change or delete any files you wanted to... so long as they weren't read-only. Under MS-DOS, if you had a read-only file and tried to delete it, you would get an error saying "Cannot delete read-only file". There was a simple remedy to this, just turn off the read-onlyness:

Code:

attrib -r hello.txt

The point I'm trying to make here is that even though you had full permissions over the file, you still had to turn off its read-onlyness before you could make a change. Well I'm trying to do something similar in Linux. Under Linux, the root user has full permissions over every file. But I need to make a particular file read-only so that not even the root user can alter it. I have a few programs on my computer that need to be run as root because they do some low-level networking (raw sockets and the like), and these programs alter my "/etc/resolv.conf" file. Well I need to find a way of making my "/etc/resolv.conf" file READ-ONLY, even for the root user. It doesn't seem as though the Linux filesystem provides a means of doing this, reason being that the root user will always be able to alter any file it wants to. I was thinking though... there's some way I could turn my "/etc/resolv.conf" file into a virtual file of some sort, like maybe I could use some sort of mount program to mount the file as read-only... ?

View 9 Replies View Related

General :: Dividing Content Of One File By Content Of Another?

Apr 12, 2011

If you have the value 100 in File1 and the value 5 in File2, how do you write a script to divide the 100 in File1 by the 5 in File2 in Linux Bash Shell?The operating system I am using is Ubuntu 10 and object is to write a script to accomplish this task.

View 5 Replies View Related

OpenSUSE Network :: Root User Has Access To Remote Folders/files Of Any User?

Jan 21, 2010

Prelude: OpenSUSE 11.2 (2.6.31.8-0.1-desktop), installed Novell client 2.0 SP2 (novell-client-2.0-sp2-sle11-i586.iso).

I found that if any usual user is logged into a NDS-tree, then _local_ root has full access to user's network shares, including the user's home directory located on remote Netware-server. Is it by design or
have I missed something? Nevertheless in windows local admin has no access to network resources mounted of any other user. If you runas shell (as admin) then admin in principle can't "see" network shares which were mounted (connected) by other users - they are accessible ("visible") per session.

View 3 Replies View Related

OpenSUSE Install :: Strange File In The Root Directory?

Jun 1, 2011

In a fresh install of 11.4 I see a file named "1" (the number "One") in the / (root) directory.

Code:
vodoo@host:/> ls -l 1
-rw-r--r-- 1 root root 0 May 31 11:29 1

Who creates this file and what is it good for?

View 9 Replies View Related

OpenSUSE Install :: Get A 64 Bit File System To Read 32 Bit File System Drives?

Feb 2, 2010

Have just assembled a new computer and thought I would install the 64 bit version of openSUSE 11.2 in a "Windows free zone". After a hiccup or two I have managed to get a system of sorts running but on trying to copy files from my old computer(via a memory stick) it tells me that Vfat is an unknown file system.On my old computer I am running 32 bit openSUSE 11.2 as a dual boot system with Windows XP and have no problems moving files between the two different file systems.Is it possible to get a 64 bit file system to read 32 bit file system drives and if so how do I do it?

View 7 Replies View Related

Fedora Security :: Make The Root File System Read-only

Jun 23, 2009

I am interested in making the root file system is read-only. I've moved /var and /tmp file systems to another partitions. There are two files in the /etc directory that need to be writable.

These are:

I've moved this files to /var and linked it. I've added command to the /etc/rc.d/rc.local file:

That's it. Are there other solutions to make the root file system is read-only?

View 1 Replies View Related

Ubuntu Servers :: Root File System Keeps Getting Remounted Read Only?

May 13, 2010

I have a 9.04 64bit Ubuntu server that I use for a home file server and for downloading duties, every few days the root filesystem gets remounted as read only, usually requiring a reboot and fsck to get everything running again. The box is tucked away in the roof space to keep the noise down so it's a bit of a pain to keep pulling it out to get console access.troubleshoot what might be causing this?/ is on a raid 1 array on 2 8GB usb sticks last few lines of DMESG EXT3-fs error (device md3): ext3_journal_start_sb: Detected aborted journal

Code:
[632280.290419] journal_bmap: journal block not found at offset 23180 on md3
[632280.290470] Aborting journal on device md3.

[code]....

View 9 Replies View Related

Debian Configuration :: Start X Server In A Read Only Root File System?

Apr 27, 2010

For my project, it's absolutely necessary to have a read-only root partition system. I have a writable /opt/project partition.But, I also need to start x server. startx This tries to write to some temporary files and fails as / is readonly. Is there any how-to on how to move this temporary files to the writable portions of the file system.

View 3 Replies View Related

General :: Root File System Is Mounted Read-only On Boot On Gentoo?

Sep 27, 2010

I am using Gentoo Linux and for a while now, the root file system is mounted read-only on booting. For obvious reasons, this is quite annoying as most services do not start up correctly (I do not use a separate file system for /var). After the system is up, I have to log in, remount the root file system read-write, fix /etc/mtab, mount all other file systems in from /etc/fstab and then start up all the missing daemons. I know that there are ways to make a system run properly with a read-only file system, but I would rather restore the old behaviour of a writable root file system.

The strange thing is that after running mount / -o remount,rw, the file system is mounted in writable mode without any errors. I suspected some problem with fsck, but now I have disabled automatic file system checks on the partition (tune2fs -c0 -i0).When I run dmesg, only these lines mention the partition at all, although I am not sure if not something gets lost because /var/log is not writable:

EXT3-fs (sda5): mounted filesystem with writeback data mode</code>
EXT3-fs (sda5): using internal journal
The line in /etc/fstab looks like this:

[code]....

View 2 Replies View Related

Fedora :: Root User Won't Be Able To Read "active" Xguest Home Directory

Aug 31, 2011

Xguest uses namespace.d/xguest.conf.

[code]...

root user won't be able to read the "active" xguest home directory (ll /home/xguest will only show an almost empty folder with content from /etc/skel). How can a root user list the folder of an the xguest home directory (while xguest is logged in)?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved