LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2012, 11:55 PM   #1
david_ng
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
Cd Permission Denied


I am trying to set the permission
I have one folder as following:
david@raspberrypi /var $sudo chmod 770 www
ls -l
david@raspberrypi /var $drwxrwx--- 2 www-data www-data 4096 Aug 14 11:19 www
david@raspberrypi /var $ cd www
-bash: cd: www: Permission denied
david@raspberrypi /var $ groups david
david : david www-data
david@raspberrypi /var $ cat /etc/group |grep 'david'
www-data:x:33:david
david:x:1002:

Also , i have create new account called Pen, it can access the folder successful....
david@raspberrypi /var $ sudo useradd -m -g www-data -s /bin/bash Pen
david@raspberrypi /var $ su Pen
Pen@raspberrypi /var $ cd www
I would like to know why i cannot access the folder?
Any Idea for here?
 
Old 08-14-2012, 01:57 AM   #2
laijucbabu
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
Hi david,

Could you please check whether you are getting any error message in /var/log/messages file . If you are getting any error please post .

Regards
 
Old 08-14-2012, 02:05 AM   #3
david_ng
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,
i have check my /var/log/message and /var/log/syslog
It no any error message about permission denied....
Content as following.
/var/log/message:
Aug 12 14:38:14 raspberrypi kernel: [ 23.276214] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
Aug 12 14:38:18 raspberrypi kernel: [ 31.033982] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SS
Aug 14 08:28:51 raspberrypi kernel: [ 63.422391] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
Aug 14 08:28:52 raspberrypi kernel: [ 63.790518] ip_tables: (C) 2000-2006 Netfilter Core Team
Aug 14 08:28:52 raspberrypi kernel: [ 63.895338] nf_conntrack version 0.5.0 (3446 buckets, 13784 max)
/var/log/syslog:
Aug 14 13:09:01 raspberrypi /USR/SBIN/CRON[2736]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Aug 14 13:17:02 raspberrypi /USR/SBIN/CRON[2747]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Aug 14 13:39:01 raspberrypi /USR/SBIN/CRON[2758]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Aug 14 14:00:12 raspberrypi dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Aug 14 14:00:12 raspberrypi dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Aug 14 14:00:12 raspberrypi dhclient: DHCPOFFER from 192.168.1.1
Aug 14 14:00:12 raspberrypi dhclient: DHCPACK from 192.168.1.1
Aug 14 14:00:13 raspberrypi dhclient: bound to 192.168.1.128 -- renewal in 17352 seconds.
 
Old 08-14-2012, 02:09 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Had you just created the group? You may need to log out and in again. The kernel has a list of your login shell's groups, which may be missing www-data if you created it during the current session.
 
Old 08-14-2012, 02:12 AM   #5
laijucbabu
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
Hi,
Could you please check is there any error is reported in the below mentined files


/var/log/secure or /var/log/auth.log

please check /etc/sudoers file whether any permissions are configured.

Could you please tell me are you using any application for providing the additional security.

Regards
 
Old 08-14-2012, 02:15 AM   #6
david_ng
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank all,
I try to login again , it work.
Thank All.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permission denied alam123 Linux - Newbie 3 05-12-2009 07:50 PM
permission denied DDK2669 Ubuntu 7 04-23-2009 02:59 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
su -> permission denied progster Linux - General 9 06-28-2007 01:36 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration